flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 11 Sep 2011, 05:00
We have no ides what you have done. Are you checking for $ as a string terminator in the print_string code? Perhaps you need to show your print_string source code?
|
|||
![]() |
|
Repulverized 11 Sep 2011, 05:05
my print_string code is this
print_string: lodsb cmp al, 24h je print_string_eof mov ah, 0eh int 10h jmp print_string print_string_eof: ret |
|||
![]() |
|
LocoDelAssembly 11 Sep 2011, 05:50
The code is completely expected to print "$", notice that when you return form your print_string, AL is loaded with "$" (because you destroyed caller's AL value with lodsb), and since you are calling int 0x10 from you main loop you get the $ printed. Your code as is should be printing one "$" per keystroke.
I would like to suggest a fix, but it is unclear to me what are you trying to do. Perhaps you could do some sort of narration about what keyboard events the user is doing and how the program should react to them? (including a pseudo-screenshot also) |
|||
![]() |
|
Dex4u 11 Sep 2011, 22:22
You need to tell us, what your trying to do.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.