Get the latest tech news

Emulating 6502


My journey into retrocomputing, 8-bit home computers, Apple I and of course MOS 6502 assembly.

Over the year I visited some retrocomputing festivals and museums, built a plywood arcade cabinet with a kid, and worked with a friend to design a small handheld monochrome gaming console, complete with schematics, PCB, and firmware! The rest of the address space varies between computers, but generally includes ROM (or EEPROM), which stores the “monitor” program or OS BASIC interpreter code. Stack (TSX, TXS, PHA, PHP, PLA, PLP) - “push” and “pop”, or “mov” for S/X Arithmetic (ADC, SBC, CMP, CPX, CPY) - add/sub and compare Bitwise (AND, EOR, ORA, BIT) - bitwise operations Shifts (ASL, LSR, ROL, ROR) - shift and rotate bits Increments (INC, INX, INY, DEC, DEX, DEY) - inc/dec Jumps (JMP, JSR, RTS, RTI) - jmp/ret Branches (BCC, BCS, BEQ, BMI, BNE, BPL, BVC, BVS) - jump if condition Status flag (CLC, CLD, CLI, CLV, SEC, SED, SEI) - set and clear flags Misc (BKR, NOP) - break and nop

Get the Android app

Or read this on Hacker News