flat assembler
Message board for the users of flat assembler.

Index > Main > Trouble Parsing Input

Thread Post new topic Reply to topic
Llama Boy

Joined: 24 Jul 2005
Posts: 7
Location: Texas, USA
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

get_cmd proc near
    push ax
    push si
    mov ah,0
    int 16h
    cmp al, 13
    je got_cmd
    mov [si],al
    inc si
    jmp next_in
cmp si, cls
je clear_scr

jmp done_cmd

call clear_screen
jmp done_cmd

pop si
pop ax

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
Post 01 Aug 2005, 17:29
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.