Assembly code: Fixed a bug where the compiler would print a null byte which was masked by the verilog simulators
This commit is contained in:
parent
2c8e8a9d9c
commit
0ca1da81b1
@ -31,10 +31,12 @@ mov bx,#compiling
|
|||||||
mov ah,#0x02
|
mov ah,#0x02
|
||||||
print2:
|
print2:
|
||||||
mov dl,[bx]
|
mov dl,[bx]
|
||||||
|
cmp dl,#0
|
||||||
|
je exit
|
||||||
int #0x21
|
int #0x21
|
||||||
inc bx
|
inc bx
|
||||||
cmp dl,#0
|
jmp print2
|
||||||
jne print2
|
exit:
|
||||||
|
|
||||||
MOV SI,#prog
|
MOV SI,#prog
|
||||||
MOV DI,#output_program
|
MOV DI,#output_program
|
||||||
|
Loading…
Reference in New Issue
Block a user