Header image at HALCODE

Retro

Writing Programs with Echo (DOS)

May 4th, 2008  |  by Jose  |  published in Assembler, Debug, Languages, Programming, Retro

How do you input those characters as parameters for the echo command? I found no way of doing that. If you know a way, please drop me a line.

Encoding Intel x86/IA-32 Assembler Instructions

April 28th, 2008  |  by Jose  |  published in Assembler, Debug, History, Retro

Translation of the second line is a direct and solved issue. What about jmp 114? Well, we want to jump over the data (18 bytes, one byte per each character in the string.) IASDM tell us (Appendix B) that the opcode for unconditional jumps in the same segment is 11101011, which in hexadecimal, is expressed as EB.

Debugging “hello, world”

April 17th, 2008  |  by Jose  |  published in Assembler, Debug, History, Programming, Retro

The Go command (g) will run the program starting at the given address (in this case, CS:0100) If everything goes right, the program should output the intended “hello, world!” string, and finish with the message “Program terminated normally.”

hello, world

January 21st, 2008  |  by Jose  |  published in C, History, Languages, Pascal, Programming, Retro

Personally, by reading “hello, world”, I evoke orange and warm afternoons, with my eyes strained (and soothed) by code. Nice, and overly inefficient Pascal code. In some images, a few BASIC snippets interleave, but those are not that nice to remember…

About HALCODE

Computer Science Reviews: Passion for (my badly written) code . Subscribe via RSS »