Hi everybody,
Me and my mate are busy for school and have to create a simple assembly program.
How do we output a value to the screen. Our value is set in BL and contains 55.
We already print sims text onscreen by using msg.
This is our simple source code:
#make_com#
ORG 100H
MOV BL,0
add BL,1
add BL,2
add BL,3
add BL,4
add BL,5
add BL,6
add BL,7
add BL,8
add BL,9
add BL,10
JMP START
msg DB 'Output: ','$'
START: LEA DX, msg
MOV AH, 9
INT 21h
HLT
Thanks in advance,
Erik.
Me and my mate are busy for school and have to create a simple assembly program.
How do we output a value to the screen. Our value is set in BL and contains 55.
We already print sims text onscreen by using msg.
This is our simple source code:
#make_com#
ORG 100H
MOV BL,0
add BL,1
add BL,2
add BL,3
add BL,4
add BL,5
add BL,6
add BL,7
add BL,8
add BL,9
add BL,10
JMP START
msg DB 'Output: ','$'
START: LEA DX, msg
MOV AH, 9
INT 21h
HLT
Thanks in advance,
Erik.