Message board for the users of flat assembler.
> MenuetOS > Function 47
vinyl 01 Oct 2004, 15:13
Could someone post a sample/commented
example code of how this works?
Where is # displayed?
in sysfunc.txt is says
ebx=print type, bl=0 (byte low?)
define "print type"
I would like select a memory location and display the byte in
decimal, hex and binary.
|01 Oct 2004, 15:13||
Wishing 01 Oct 2004, 18:04
ebx = print type, bl=0 -> ecx is number
bl=1 -> ecx is pointer
bh=0 -> display decimal
bh=1 -> display hexadecimal
bh=2 -> display binary
bits 16-21 = number of digits to display (0-32)
bits 22-31 = reserved
print type consists of two words bh and bl
^bits 16-32 are here^you must sut BOTH the bh and bl to
the values specified above to display a number.
if bl = 0 the ecx it assume that the data to display is IN ecx.
if bl = 1 it assume the number to display is at [ecx]
bh =0,1,2 makes the kernal print out differnent versions of ecx
example of ebx to print 4 digits of a decimal number stored in ecx
|01 Oct 2004, 18:04||
bloglite 02 Oct 2004, 02:57
I think we should put a html together with the sysfuncs and a linked example to a sample of well commented ASM showing the use of that function with it's options. Once we gather all the code put it together as a unitary program so you can see the use of each function.
Pick a function and submit your sample code.
Remember to use only what is needed to show the function w /all it's options.
send examples to: MenuetUSA@yahoo.com
This will help everyone trying to learn and reduce questions about the sysfuncs.
Thanks for the help, Mark & Matt (GridWorks)
|02 Oct 2004, 02:57||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.