flat assembler
Message board for the users of flat assembler.
  
|  Index
      > OS Construction > Why doesn't this code write all lines? | 
| Author | 
 | 
| JohnFound 08 Mar 2004, 09:02 Hi.
 What you tryed to solve the problem? Regards | |||
|  08 Mar 2004, 09:02 | 
 | 
| joachim_neu 08 Mar 2004, 09:50 sorry, I didn't try anything special, because I didn't saw the logic behind it, I think, there's something wrong, because normally a computer writes all or nothing but something in the middle wasn't logically for me, so I couldn't do something... | |||
|  08 Mar 2004, 09:50 | 
 | 
| joachim_neu 08 Mar 2004, 09:52 If it whould only not write the last 20 chars, I whould see a logic, but exactly allways the first and the last line... Sometimes the last line are 30 or 32 chars and so there I found no logic... | |||
|  08 Mar 2004, 09:52 | 
 | 
| joachim_neu 08 Mar 2004, 10:45 oh           , I did a mistake... The mistake is not in the write-code (I tested with bootread from bitdog, I wrote in sector 1 and read it with bootread), the mistake is in the read-code, but where?: Code: ; Ließt Sektoren von der Platte loads: mov si,load_msg call putstr ; Diskdrive reset (Interrupt 13h, 0) push ds ; Save DS mov ax, 0 ; The function (reset) mov dl, 0 ; This drive int 13h ; run the interrupt pop ds ; DS recover jc loads ; Misstake? Again! load1: mov ax,0x5000 ; ES:BX = 50000 mov es,ax mov bx, 0 ; read sectors (Interrupt 13h, 2) mov ch,00h call getkey dec ah mov cl,ah mov dx,0x0000 mov al,1h mov ah,2h ; Function 2 (Lesen) int 13h ; ES:BX = Dates of the drive jc load1 ; misstake? again! mov ax,0x5000 mov es,ax mov BP, 0 mov AH,13h mov AL,0h mov BL,07h mov BH,00h mov CX,0x200 mov DH,19h mov DL,0 int 10h mov si,empty call putstr jmp START thanks JOACHIM NEU | |||
|  08 Mar 2004, 10:45 | 
 | 
| JohnFound 08 Mar 2004, 10:59 Good. You have an advance.
 Keep working this way. regards. | |||
|  08 Mar 2004, 10:59 | 
 | 
| joachim_neu 08 Mar 2004, 11:37 I think some empty lines are written over the others...
 I'll test it... | |||
|  08 Mar 2004, 11:37 | 
 | 
| joachim_neu 08 Mar 2004, 18:48 thanks... there were two lines overlapped, the last were empty.... | |||
|  08 Mar 2004, 18:48 | 
 | 
| JohnFound 08 Mar 2004, 18:54 Great!   | |||
|  08 Mar 2004, 18:54 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.