Skip to main content
Commonmark migration
Source Link

#8086 machine code, 68 61 48 46 45 39 bytes

8086 machine code, 68 61 48 46 45 39 bytes

00000000 b2 31 be 82 00 ac 9f 88 c3 ac 3c 0d 74 14 38 c3 |.1........<.t.8.| 00000010 74 f5 e3 03 b1 00 9f 77 05 9e 76 ea eb 03 9e 77 |t......w..v....w| 00000020 e5 4a b4 02 cd 21 c3 |.J...!.| 00000027 

Assembled from:

org 0x100 use16 mov dl, 0x31 mov si, 0x82 lodsb a: lahf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cl, 0 lahf @@: ja @f sahf jbe a jmp n @@: sahf ja a n: dec dx y: mov ah, 0x02 int '!' ret 

#8086 machine code, 68 61 48 46 45 39 bytes

00000000 b2 31 be 82 00 ac 9f 88 c3 ac 3c 0d 74 14 38 c3 |.1........<.t.8.| 00000010 74 f5 e3 03 b1 00 9f 77 05 9e 76 ea eb 03 9e 77 |t......w..v....w| 00000020 e5 4a b4 02 cd 21 c3 |.J...!.| 00000027 

Assembled from:

org 0x100 use16 mov dl, 0x31 mov si, 0x82 lodsb a: lahf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cl, 0 lahf @@: ja @f sahf jbe a jmp n @@: sahf ja a n: dec dx y: mov ah, 0x02 int '!' ret 

8086 machine code, 68 61 48 46 45 39 bytes

00000000 b2 31 be 82 00 ac 9f 88 c3 ac 3c 0d 74 14 38 c3 |.1........<.t.8.| 00000010 74 f5 e3 03 b1 00 9f 77 05 9e 76 ea eb 03 9e 77 |t......w..v....w| 00000020 e5 4a b4 02 cd 21 c3 |.J...!.| 00000027 

Assembled from:

org 0x100 use16 mov dl, 0x31 mov si, 0x82 lodsb a: lahf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cl, 0 lahf @@: ja @f sahf jbe a jmp n @@: sahf ja a n: dec dx y: mov ah, 0x02 int '!' ret 
reduced to 39 bytes
Source Link
user5434231
  • 1.6k
  • 11
  • 12

#8086 machine code, 68 61 48 46 4545 39 bytes 00000000 b2 30 be 82 00 ac eb 01 9c 88 c3 ac 3c 0d 74 16 |.0..........<.t.| 00000010 38 c3 74 f5 e3 04 b9 00 00 9c 77 05 9d 72 e9 eb |8.t.......w..r..| 00000020 07 9d 77 e4 eb 02 9d 42 b4 02 cd 21 c3 |..w....B...!.| 0000002d

00000000 b2 31 be 82 00 ac 9f 88 c3 ac 3c 0d 74 14 38 c3 |.1........<.t.8.| 00000010 74 f5 e3 03 b1 00 9f 77 05 9e 76 ea eb 03 9e 77 |t......w..v....w| 00000020 e5 4a b4 02 cd 21 c3 |.J...!.| 00000027 

Assembled from:

org 0x100 use16 mov dl, '0'0x31 mov si, 0x82 lodsb  jmp b a: pushflahf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cxcl, 0 pushflahf @@: ja @f popfsahf jbjbe a jmp n @@: popfsahf ja a  jmp n y: popf  incdec dx ny: mov ah, 0x02 int 0x21'!' ret 

#8086 machine code, 68 61 48 46 45 bytes 00000000 b2 30 be 82 00 ac eb 01 9c 88 c3 ac 3c 0d 74 16 |.0..........<.t.| 00000010 38 c3 74 f5 e3 04 b9 00 00 9c 77 05 9d 72 e9 eb |8.t.......w..r..| 00000020 07 9d 77 e4 eb 02 9d 42 b4 02 cd 21 c3 |..w....B...!.| 0000002d

Assembled from:

org 0x100 use16 mov dl, '0' mov si, 0x82 lodsb  jmp b a: pushf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cx, 0 pushf @@: ja @f popf jb a jmp n @@: popf ja a  jmp n y: popf  inc dx n: mov ah, 0x02 int 0x21 ret 

#8086 machine code, 68 61 48 46 45 39 bytes

00000000 b2 31 be 82 00 ac 9f 88 c3 ac 3c 0d 74 14 38 c3 |.1........<.t.8.| 00000010 74 f5 e3 03 b1 00 9f 77 05 9e 76 ea eb 03 9e 77 |t......w..v....w| 00000020 e5 4a b4 02 cd 21 c3 |.J...!.| 00000027 

Assembled from:

org 0x100 use16 mov dl, 0x31 mov si, 0x82 lodsb a: lahf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cl, 0 lahf @@: ja @f sahf jbe a jmp n @@: sahf ja a n: dec dx y: mov ah, 0x02 int '!' ret 
added 9 characters in body
Source Link
user5434231
  • 1.6k
  • 11
  • 12

#8086 machine code, 68 61 48 4646 45 bytes 00000000 b2 30 be 82 00 ac eb 01 9c 88 c3 ac 3c 0d 74 16 |.0..........<.t.| 00000010 38 c3 74 f5 e3 04 b9 00 00 9c 77 05 9d 72 e9 eb |8.t.......w..r..| 00000020 08 07 9d 77 e4 eb 0302 9d fe c2 b442 b4 02 cd 21 c3 | |..w......B...!.| 0000002e0000002d

Assembled from:

org 0x100 use16 mov dl, '0' mov si, 0x82 lodsb jmp b a: pushf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cx, 0 pushf @@: ja @f popf jb a jmp n @@: popf ja a jmp n y: popf inc dldx n: mov ah, 0x02 int 0x21 ret 

#8086 machine code, 68 61 48 46 bytes 00000000 b2 30 be 82 00 ac eb 01 9c 88 c3 ac 3c 0d 74 16 |.0..........<.t.| 00000010 38 c3 74 f5 e3 04 b9 00 00 9c 77 05 9d 72 e9 eb |8.t.......w..r..| 00000020 08 9d 77 e4 eb 03 9d fe c2 b4 02 cd 21 c3 |..w.........!.| 0000002e

Assembled from:

org 0x100 use16 mov dl, '0' mov si, 0x82 lodsb jmp b a: pushf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cx, 0 pushf @@: ja @f popf jb a jmp n @@: popf ja a jmp n y: popf inc dl n: mov ah, 0x02 int 0x21 ret 

#8086 machine code, 68 61 48 46 45 bytes 00000000 b2 30 be 82 00 ac eb 01 9c 88 c3 ac 3c 0d 74 16 |.0..........<.t.| 00000010 38 c3 74 f5 e3 04 b9 00 00 9c 77 05 9d 72 e9 eb |8.t.......w..r..| 00000020 07 9d 77 e4 eb 02 9d 42 b4 02 cd 21 c3 |..w....B...!.| 0000002d

Assembled from:

org 0x100 use16 mov dl, '0' mov si, 0x82 lodsb jmp b a: pushf b: mov bl, al lodsb cmp al, 0x0d je y cmp bl, al je b jcxz @f mov cx, 0 pushf @@: ja @f popf jb a jmp n @@: popf ja a jmp n y: popf inc dx n: mov ah, 0x02 int 0x21 ret 
deleted 39 characters in body
Source Link
user5434231
  • 1.6k
  • 11
  • 12
Loading
deleted 157 characters in body
Source Link
user5434231
  • 1.6k
  • 11
  • 12
Loading
deleted 43 characters in body
Source Link
user5434231
  • 1.6k
  • 11
  • 12
Loading
Source Link
user5434231
  • 1.6k
  • 11
  • 12
Loading