Hey guys!
I'm in the process of writing a bootloader and I'm having trouble printing out memory information,
using 16 bit nasm
I know INT 12h stores the low memory information in AX but I can't seem to print it out correctly.
I'm currently trying to print it by converting to ascii, moving it into a string and printing it with INT 10h but right now I just get ASCII smiley faces.
Can I get a snippet of asm on how to print the contents of AX to the screen?
Thanks
SuperKingGT
0
Newbie Poster
Recommended Answers
Jump to PostI've got a function for doing that sitting on my PC, but to save me digging it up and to help you through the problem, could you show us the pseudo routine and/or assembly code for your integer to string conversion?
Smiley faces are either 0x1 or 0x2, 0x1 being …
Jump to PostI use masm syntax, which isn't quite the same as nasm. If I remember rightly, nasm would want you to write [mem + 4] instead of mem[4].
Personally, if I was using the bios functions, I would do the print function like this. You might need to modify it for …
All 6 Replies
Assembly Guy
72
Posting Whiz
SuperKingGT
0
Newbie Poster
mathematician
0
Junior Poster
SuperKingGT
0
Newbie Poster
mathematician
0
Junior Poster
SuperKingGT
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.