Instructor Notes
January 30, 2008
mat'ls
- yogurt containers
- arrow
quote
"I think there is a world market for about five computers." (Thomas Watson, Chairman, IBM, 1943)
Z80 assembly applied intro
revisit 2s complement. From the wikipedia
11100 000 (borrow) 0000 1111 (15) − 0010 0011 (35) =========== 1110 1100 (−20)
- format of assembly code: label: opcode operands.
- First operand is destination
- registers (Z80 user's guide page A1-3)
- introduce only general-purpose, SP, PC for now
- Register's details: (A1-3 of Z80 user's guide)
- Accumulator
- HL: the 16-bit accumulator, sort-of
- DE, BC
- simple instructions
- NOP, DEC, INC, LD, CP, JP, JR, PUSH, POP, CALL, RET
- the flag register (chap 5 Z80 user's guide)
- conditional: Z flag
- addressing modes: direct, indirect
special commands for the assembler
- ;
- include
- section "name",HOME[location]
- db
blog
- example of posting on blog
- assignment: make a "home page" on the blog for Monday.
discussion list
- make sure everybody has the email addy they want
IDE
download and install
- editor
- assembler
- emulator
- "hello world" test program
for another class
- instruction types
- addressing modes (TRS-80 book page 41 chap 3)
GameBoy applied intro
additional resources
- students need links and references for supporting materials to read outside of class