All pastes #939422 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-12 08:25 UTC
rendered paste body
-e 180 "Maybe it will work.*"   //store the string, including asterisk, at 0180
-e 300 2A                       //store the hex value for an asterisk in 0300
-a 100                          //begin the 'coding' at 0100
1364:0100 mov ah, 02
1364:0102 mov bl, 00
1364:0104 mov si, 0180
1364:0107 mov dl, [si]
1364:0109 cmp bl, [0300]        //compare what is in bl to see if it is an "*"
1364:010D je 0116               //jump to 0116 if it is
1364:010F int 21
1364:0111 inc si
1364:0112 inc bl
1364:0114 jnz 0107
1364:0116 int 20
1364:0118
-g
Maybe it will work.*
Program terminated normally