flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Need Help

Author
Thread Post new topic Reply to topic
SargeXP



Joined: 11 Jul 2009
Posts: 2
SargeXP
Hi,

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.

Thanks,
Sarge.
Post 11 Jul 2009, 04:43
View user's profile Send private message Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 764
Location: Massachusetts, USA
bitshifter
hello
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...
http://board.flatassembler.net/topic.php?p=65120#65120
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.
Post 11 Jul 2009, 08:44
View user's profile Send private message Reply with quote
SargeXP



Joined: 11 Jul 2009
Posts: 2
SargeXP
Thanks for the great reply, you have put me in the direction needed.

Sarge
Post 13 Jul 2009, 15:00
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.