https://github.com/khofesh/pikuma-assembly
https://github.com/khofesh/pikuma-assembly
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/khofesh/pikuma-assembly
- Owner: khofesh
- Created: 2022-10-30T04:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T10:42:50.000Z (over 3 years ago)
- Last Synced: 2026-04-21T04:34:25.931Z (about 2 months ago)
- Language: Assembly
- Size: 1.18 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Atari 2600 Programming with 6502 Assembly
## Dasm
```shell
mkdir Dasm
wget https://github.com/dasm-assembler/dasm/releases/download/2.20.14.1/dasm-2.20.14.1-linux-x64.tar.gz
tar xvf dasm-2.20.14.1-linux-x64.tar.gz
```
update `PATH` in `.bashrc`
```shell
export PATH="$PATH:/home/fahmad/Dasm/"
```
logout or source the new bash config
```shell
source ~/.bashrc
```
## Stella
```shell
sudo dnf install stella
```
to see debugger mode, click backtick \` key.

## Digital Binary System
### convert binary to hexadecimal
| 00011011 | |
| :-----------: | :-----------: |
| 0001 (nibble) | 1011 (nibble) |
| 1 | 11 |
| 1 | B |
| 1B | |
## 6502 assembly instructions
```assembly
ldy #100 ;y=100
Loop:
dey ;y--
bne Loop ;repeat until y == 0
```
# References
- https://pikuma.com/courses/learn-assembly-language-programming-atari-2600-games
- https://dasm-assembler.github.io/
- https://stella-emu.github.io/index.html
- http://www.6502.org/tutorials/6502opcodes.html
- https://marketplace.visualstudio.com/items?itemName=simondotm.beeb-vsc