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:
(Tim) Efthimis Kritikos 2023-11-14 21:14:45 +00:00
parent 2c8e8a9d9c
commit 0ca1da81b1

View File

@ -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