flat assembler
Message board for the users of flat assembler.
Index
> Main > Where is the misstake? |
Author |
|
S.T.A.S. 03 Mar 2004, 07:59
I guess you have win NT/2k/XP
|
|||
03 Mar 2004, 07:59 |
|
Rookie 03 Mar 2004, 09:02
Int the NT series, and later 2K&up, you do not have direct access to the system's resources (including access to physical sectors of your HDD), and this is exactly what you are trying to do, as you are using interrupts, not the Windows API. If you don't have a Win9x distribution, a DOS diskette should suffice (if you don't have one of that either, just goolge for 'Win98SE Startup Disk' and download an FD image that you can either write to a FD or use in virtual machine software like Bochs).
Plus, mistake is spelled with only one s (you asked us to let you know about your mistake). I know all I've done is repeat what S.T.A.S. said, but when you're 13 and learning programming you have a lot of why-s in your head, that need ample answers (at least I had). _________________ This is who I choose to be. |
|||
03 Mar 2004, 09:02 |
|
joachim_neu 03 Mar 2004, 15:49
hello,
i startet the programm with a DOS-floppy but it still didn't work. it seems that it is writing on the monitor and the cursor jumps, but there comes only black in stead of white text or letters... mybe you can help me again... JOACHIM NEU |
|||
03 Mar 2004, 15:49 |
|
S.T.A.S. 04 Mar 2004, 21:34
Hi, joachim_neu.
Your program consist of two patrts. The first step to solve problem is to localize it. Try to fill your buffer with some ASCII chars, don't read from drive. If you'll see some symbols on screen, then problem is with reading sectors. Otherwise, there's something wrong with your last call to BIOS. I'm not sure why you use "mov BH,0h". Also, what does 0h in "mov BL,0h" mean for int 10h/AH=13h? |
|||
04 Mar 2004, 21:34 |
|
joachim_neu 05 Mar 2004, 11:33
hello,
my code was right, the only mistake was that I set BX in the outputpart in 0h, so that that, what was written onto the monitor was in black letters and on black background, so you couldn't see it... But how may I write a string into the ram, my buffer??? |
|||
05 Mar 2004, 11:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.