Message board for the users of flat assembler.
> OS Construction > Need Help
SargeXP 11 Jul 2009, 04:43
I have two questions i would like answered if possible. I have seen the source for OS's such as MenuetOS and DexOS and while inspecting them i see they don't use macros, is there a reason for this? as i use them for most of my commands such as "Macro Print String"
The second thing i would like to know is, how would it be possible to debug registers to the screen as in display their values while in 16bit real mode. It would be much more flexible than using the Bochs debugger.
|11 Jul 2009, 04:43||
bitshifter 11 Jul 2009, 08:44
I used one macro in my OS for readability.
Remember using a proc cuts down code size and
is better for cache most of the time anyway.
Its really the coders choice to use them or not.
Also if you want to view register as decimal
then check out dispnum function from here...
It can be easily converted to do what you need.
The cool part about this method is that it unwinds
the number backwards onto the stack with a nice trick.
Coding a 3D game engine with fasm is like trying to eat an elephant,
you just have to keep focused and take it one 'byte' at a time.
|11 Jul 2009, 08:44||
SargeXP 13 Jul 2009, 15:00
Thanks for the great reply, you have put me in the direction needed.
|13 Jul 2009, 15:00||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.