Array: Difference between revisions
m
→Encoding an Array's End: Fixed a mistake. The pointer wasn't getting incremented.
Puppydrum64 (talk | contribs) m (→Assembly) |
Puppydrum64 (talk | contribs) m (→Encoding an Array's End: Fixed a mistake. The pointer wasn't getting incremented.) |
||
Line 120:
<lang asm>PrintString:; 8086 Assembly example
; input: [DS:SI] = string pointer
mov al,[ds:si]
jz Terminated ;we've reached the terminator
inc si
call PrintChar ;call to hardware-specific printing routine
jmp PrintString
|