flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
inflater 15 Jul 2007, 17:21
Greetings,
Try this: Code: push es ;Save ES read_again: xor ax,ax ;AX=0 mov bx,ax ;BX=0 mov cx,ax ;CX=0 mov dx,ax ;DX=0 int 13h jc failure mov ax,0202h mov cl,1 mov bx,50h mov es,bx ;ES:BX=0050:0200h mov bx,200h int 13h jc read_again jnc continue failure: pop es mov si,... ;Display the failure message ... mov ah,0x4C ;Exit the program or hang or whatever, but int 21h ;dont continue continue: pop es mov ax,0050h ;Just in case mov bx,0200h ;and this too push ax push bx sti retf Should work, but it's untested. Give it a try ![]() inflater |
|||
![]() |
|
mkriegel 15 Jul 2007, 18:37
Thank you, inflater.
I tried your code in my code frame and it didn't work too. Now I fount out, that a wrong value in sp was the prob. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.