flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Llama Boy 01 Aug 2005, 17:29
I am working on a command line for an OS, working from scratch never seemed so hard. Ive only been programming for like 2weeks in assembler, so this is prolly very wrong. But here is the code
Code: get_cmd proc near push ax push si next_in: mov ah,0 int 16h cmp al, 13 je got_cmd mov [si],al inc si jmp next_in got_cmd: cmp si, cls je clear_scr jmp done_cmd clear_scr: call clear_screen jmp done_cmd done_cmd: pop si pop ax ret get_cmd endp cls is cls db 'clear',0 I know why it isn't working, but how could i make it read the word as a byte? _________________ ![]() donut < llama < az http://llama.computerboffin.com/ <-signup http://llama.computerboffin.com/dotvs/ |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.