flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > IMG file with int 0x10h and AH=09h |
Author |
|
revolution 18 Feb 2018, 04:32
Moved to OS Construction
|
|||
18 Feb 2018, 04:32 |
|
DimonSoft 18 Feb 2018, 08:58
catafest wrote: What is wrong with this code !? What behaviour do you define as “right”? If you want to make a pseudographic window border, then you’ve obviously used the wrong code for the first character. Anyway, you have quite serious smells in your code. Like, say, using a conditional jump without any instructions that have impact on status flags before. And the jump does nothing anyway, since the label it references marks exactly the next instruction. Note also that BIOS functions (except maybe some corner cases) are supposed to preserve the contents of all the registers except AX, FLAGS and those used to return some data. Buggy BIOSes are of little interest, so there’s no practical need to waste bytes for putting values into each and every register before every call. |
|||
18 Feb 2018, 08:58 |
|
catafest 18 Feb 2018, 12:11
I used in the past some assembler code. I read more about 8086 in the past, but I never used into next steps like IMG format , resident program , ...
About using a conditional jump without any instructions that have impact on status flags , then : My example is a part of study and learning process into assembly area. To make a gui into old style , yes can be a good idea to fulfill all issues and follow the right steps . Also the 3 rules of assembly are not enough to learn, I try to use more instructions and formats in a fair way. One good example is old debug issues: http://thestarman.pcministry.com/asm/mbr/AA55H.html FLAGS !? maybe FASM make something strange is too into all assembly code !! |
|||
18 Feb 2018, 12:11 |
|
DimonSoft 20 Feb 2018, 05:36
catafest wrote: FLAGS !? maybe FASM make something strange is too into all assembly code !! I don’t get this sentence. FASM, unlike MASM/TASM, does little to no strange things. Flags are architecture specific and not asm dialect related. Maybe you should express your idea/question in other words. You can use your native language, if you wish. |
|||
20 Feb 2018, 05:36 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.