flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Where is the misstake??? |
Author |
|
joachim_neu 26 Dec 2003, 12:55
hello,
here is an other problem, make only the image with rawrite on a floppy an test it, the command COM doesn't work, an VER doesn't work right... Where is the problem??? JOACHIM NEU
|
|||||||||||
26 Dec 2003, 12:55 |
|
Endre 01 Jan 2004, 14:41
Let's do it step by step. I comment you the code (see below), so you may find the problems. By the way this little code should work under DOS without your boot loader, so you can simply test it.
Gruß Endre Code: org 100h mov ax,0x1000 ; this three lines can cause problems mov es,ax ; since lodsb reads from ds:[si] mov ds,ax ; I suggest commenting them out ; or setting ds, es to cs mov si,nachricht ; load nachricht in si lodsb ; load character 'P' in al or al,al ; test if 'P' == 0 (it has low probability jz schreiben_d ; if 'P' is zero then finish mov ah,0x0e ; else print it out mov bx,0x0007 ; int 0x10 ; jmp lesen ; the whole lesen rutine should be here schreiben_d: ; finish retn lesen: mov ah,0 ; wait for a key int 16h ret ; finish db 0eah dw 0000h dw 0ffffh nachricht db "Please press a key to REBOOT...$",24h ; where is the 0 from the end? You test for it above. |
|||
01 Jan 2004, 14:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.