Actually I try to make a little dbg on MeOS, (im begginner) at first, I wanna to start a process from terminal. Ez task, but I want to print a number on terminal (processID), after to print buffer or string.
You need to convert the number one character at a time into a string and then send it to terminal. Just devide the number by ten, add ascii base ( 48 ) to the remainder in dl (rdx), write dl into a position in string, and repeat until there is no integer part left in rax. Then send the string to the terminal. See the DIV instruction.
In : rbx - bits 00-07 - 0 - rcx is number
- 1 - rcx is pointer
bits 08-15 - 0 - display decimal
- 1 - display hexadecimal
- 2 - display binary
bits 16-31 - number of digits to display
bits 32-63 - not used
rcx - Number or pointer
rdx - X shl 32 + Y
rsi - Color
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 can attach files in this forum You can download files in this forum