flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
nop
hey abuashraf i can understand this code (i think
![]() are you running it in dos? i dont think you can cos im pretty sure 0x100:0 and 0x500:0 will be in the dos area unless you load DOS high ?? but there might still be some stuff down there and dos will crash. like 0x3000:0 and 0x4000:0 would be safer if you dont ask dos for the memory what debugger do you use? |
|||
![]() |
|
revolution
nop: don't forget that this is the OS Construction section, so DOS is probably not running, one would imagine the OS is likely proprietary.
|
|||
![]() |
|
sinsi
Code: mov bx,[es:di] ;address of fat table into memory Since ES:DI is always 100:0 you are reading cluster 0 every time (FFF I think) Code: mov dx, WORD [bx] ;read two bytes from FAT(dx=old value) If you are reading the FAT, you must use [ES:BX] You really should get used to the ES override you know... ![]() Code: cmp [cluster], 0x0FF0 ;test for end of file FF0 to FF6 are reserved, FF7 is a bad cluster, FF8 to FFF is used to mark the last cluster. |
|||
![]() |
|
abuashraf
WoW sinsi,you are amazing,
![]() It's working now ,thank you very much. |
|||
![]() |
|
nop
revolution wrote: nop: don't forget that this is the OS Construction section, so DOS is probably not running, one would imagine the OS is likely proprietary. good point revolution, im so silly ![]() abuashraf what is your os? sinsi well spotted that my good friend es: aka 26h was missing |
|||
![]() |
|
abuashraf
Quote: abuashraf what is your os? I'm writing my own real mode os,if that answer your question... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.