flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 07 Jan 2011, 17:31
1. Please use [code] tags around your code. That puts it into scrollable window, and so your post with long takes less space. Also, your code gets colorized and spaces aren't ignored.
2. You posted in wrong section of forum. "Compiler internals" is supposed to be about compiler internals, this thread is now moved to OS development section. |
|||
![]() |
|
pearlz 07 Jan 2011, 18:41
Hi! that's complie OK in my Conputer.
je <-> jz jne <-> jnz |
|||
![]() |
|
Tyler 07 Jan 2011, 18:45
2. He's asking about a compiler generated error message.
The error is caused by another process has exclusive write permissions, blocking Fasm from writing to the file. |
|||
![]() |
|
pearlz 07 Jan 2011, 18:47
you not open "boot.bin" at the same time???????????
|
|||
![]() |
|
vid 07 Jan 2011, 23:58
Quote: 2. He's asking about a compiler generated error message. Oooh, sorry. Maybe your boot sector was executed somehow (as DOS .com file under Windows) and didn't exit properly. Hit CTRL+ALT+DEL, start Task Manager, and look if you can't find it as running process. If you find it, kill it. |
|||
![]() |
|
me239 21 Jan 2011, 05:43
I noticed that you have a lot of bugs. First off, you need to optimize your printing routine
Code: mov si, text call printf printf: lodsb cmp al, 0 je pdone mov ah, 0eh int 10h jmp printf pdone: ret text db "Enter number: ", 0 I'm not sure what you're trying to do with the input as all you are doing is converting ascii to decimal and back. Anyways, it's still ridden with bugs. Here is a better way to do it Code: xor ax, ax int 16h mov ah, 0eh int 10h I based this code off what you have already have done so if it doesn't do what you intended it's not my fault. One last thing, end your code with the following Code: times 510-($-$$) db 0 dw 0aa55h instead of Code: times 420 db 0 dw 0aa55h |
|||
![]() |
|
bitshifter 22 Jan 2011, 02:27
Also dont forget to select the display page with BH = page index.
Code: ; al = character mov ah,0eh mov bh,0 ;first page! int 10h |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.