Lesson 12 Powers of 2 Principle, Debugger Overview, FLAGS Register, PUSH and POP

3 years ago

Getting into the "Powers of 2 Principle" and how it permeates TempleOS.
Introducing F64 data type for HolyC, but holding back on Assembly FPU programming for now
Debugger caveats with R10andR15.HC.Z. Why does R10 always show 0's? (Unresolved mystery)
Working with the stack; everything is always at least 8 bytes pushed, even dealing with
single ASCII characters. Concept of memory alignment on 8 byte boundary.
Accessing Registers in Dbg with _RSP notation.
Peeking and Poking memory using HolyC notation.
Pushing some numbers onto the stack. Where the heck are they?
Trying to unassemble the debugger and running into Software Interrupt I_DBG mystery.
Introduce the D() Dump Function, and solve the mystery of where are my push'd numbers
Do a little program that compares 2 numbers, getting into the FLAGS register

Loading comments...