add org files

This commit is contained in:
Alex Weisberger 2014-10-07 23:51:30 -04:00
parent 70db1564a4
commit db3ae89745
2 changed files with 103 additions and 0 deletions

74
notes/6502Arch.org Normal file
View File

@ -0,0 +1,74 @@
* Addressing modes
has a 16-byte address bus.
** Absolute
- Full memory location specified, i.e. $c000
- 65536 bytes of addressable memory (2^16 duyyy)
** Zero-page
- 1 byte adress, i.e. $c0, 256 bytes adressable
- faster, takes less program space
** Zero-page, X
- Relative adressing _within_ the zero page.
- Adds the value in reg. x with a 1-byte adress
- i.e. STA $a0, X
- Address wraps around if the addition is larger than 1 byte
** Zero-page, Y
- equiv to zero-page, X but can only be used with LDX and STX
** Immediate
- i.e. #$c0
- loads immedate number into register
** Relative
- i.e. $c0, or label
** Implicit
- when operation doesn't deal with memory
** Indirect
- Uses absolute address to get another address
- first address is LSB of address, following byte is MSB
** Indexed Indirect
- i.e. LDA ($c0, X)
- Take a zero page adress and add the value in reg. x to it, look up 2 byte address
** Indirect Indexed
- zero page address dereferenced then Y is added to it
* Stack
- lives in memory between $0100 and $01ff
* Jumping
- JSR/RTS: Jump to subroutine and return from subroutine

29
notes/Notes.org Normal file
View File

@ -0,0 +1,29 @@
* Information
** 6502.org
http://6502.org/
** Easy 6502 tutorial
http://skilldrick.github.io/easy6502/
** Opcodes
http://6502.org/tutorials/6502opcodes.html
* Tools
** Web Compiler
http://www.6502asm.com/
* Work
** aweisberger
*** TODO Add Controller
Must fetch program instruction from memory, decode and execute it.