Okay, so I have some real-mode code that displays characters on the screen. It should work, but doesn't.
It's really weird, becauseit works if I put a inline value into al, but not if I read from string.Code:[BITS 16] [ORG 1000h] hello: mov BYTE al,[string] call charout call charout .end jmp .end ; outputs the character in al. charout: mov ah,0x0E mov bh,0x00 mov bl,0x06 int 0x10 ret string: db "HELLO WORLD",10,13,0 ; message to display times (512*2)-($-$$) db 0 ;512 bytes to a sector


LinkBack URL
About LinkBacks





Reply With Quote


Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum