How to use strings in emu8086

str2 db ? is not an empty string. db stands for “define byte”, and that ? means single uninitialized byte. The db “0neWord” is assembler’s convenience, it will compile into series of bytes defined as ‘0’, ‘n’, ‘e’, …, ‘d’. There’s no such thing as “string” type in assembler, everything is compiled into machine code, … Read more

Displaying Time in Assembly

See the x86 tag wiki for the instruction set reference manual, and many good links to reference material and tutorials. It takes enough code to split up an integer into ASCII digits that you should factor it out into a function. This is an optimized and bugfixed version of @hobbs’s print2Digits function. (I also bugfixed … Read more