flat assembler
Message board for the users of flat assembler.
Index
> DOS > A little help with my first real program? =) |
Author |
|
2 17 Oct 2006, 07:36
Hey,good job on that. That's impressive to have learned that much
in 3 days! I can't really help you with that because I don't know much about call 10 for the buffer,but I'm sure somebody can help you! Your code looks alot like my code. You haven't by any chance been reading some of my posts have you? LOL . I see you named yourself JapanLover. I'm a big fan of Japanese music and video games. So,maybe we japanesy geeks think alike! |
|||
17 Oct 2006, 07:36 |
|
rhyno_dagreat 19 Oct 2006, 01:33
I'm not familiar with this particular interrupt, not even sure if it uses standard scancodes, but I think you should have it check to see if you hit enter, and if you did, then have it display the 13 (Carriage Return) and 10 (Newline) characters.
|
|||
19 Oct 2006, 01:33 |
|
Maurício Pezzotta 19 Oct 2006, 13:57
As someone said, you'd have to display a LF and CR:
; writes to file add dx,2 ; add 2 to dx to skip to string mov cl,[bx+1] ; put string size into cl add cl,2 ; adds two characters to line add bx,cx ; points bx to end of text string mov word [bx],0A0Dh ; writes LF and CR pop bx ; pop bx to use for file handle mov ah,64 ; call 64 to write to a file int 33 ; int to write to file ; check to see if nothing entered on this line push bx ; put bx on stack for later int 33 cmp cl,2 ; cl was increase by two, so this should also increase jne input ; if something typed start over from input |
|||
19 Oct 2006, 13:57 |
|
JapanLover 25 Oct 2006, 01:03
thanks all for the replies, i just got around to actually looking at them heh...
Maurício, i tried your code additions and it seems to cause the program to quit after entering just one line of text... i'll tinker with it all more when i'm less tired... thanks again all =) p.s. 2, i like your simple name heh |
|||
25 Oct 2006, 01:03 |
|
Maurício Pezzotta 25 Oct 2006, 10:30
JapanLover wrote: Maurício, i tried your code additions and it seems to cause the program to quit after entering just one line of text... |
|||
25 Oct 2006, 10:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.