simple 8bit cpu with display press button to turn on runs best with turbowarp https://turbowarp.org/1374382591 zeropage: 0-255 program loads at 256 stack at 60928-61183 sound at 61437 (a little slow, might get your program stuck if not given enough waiting time) input (space key) at 61438 scanline at 61439 vram at 61440-65535 opcodes: 0 - no operation (0 args) 1 - load memory from address at accumulator (2 args) 2 - load memory from address at x register (2 args) 3 - load memory from address at y register (2 args) 4 - load value to accumulator (1 arg) 5 - load value to x register (1 arg) 6 - load value to y register (1 arg) 7 - store accumulator at address (2 args) 8 - store x register at address (2 args) 9 - store y register at address (2 args) 10 - jump to address (2 args) 11 - increment memory at address (2 args) 12 - increment x register (0 args) 13 - increment y register (0 args) 14 - decrement memory at address (2 args) 15 - decrement x register (0 args) 16 - decrement y register (0 args) 17 - add value to accumulator (1 arg) 18 - add accumulator to memory at address (2 args) 19 - subtract value from accumulator (1 arg) 20 - subtract accumulator from memory at address (2 args) 21 - clear carry flag (0 args) 22 - set carry flag (0 args) 23 - compare accumulator to memory at address (2 args) 24 - compare accumulator to value (1 arg) 25 - compare x register to value (1 arg) 26 - compare y register to value (1 arg) 27 - branch on equal (2 args) 28 - branch on not equal (2 args) 29 - branch on carry set (2 args) 30 - branch on carry clear (2 args) 31 - store accumulator at address (x indexed) (2 args) 32 - store accumulator at address (y indexed) (2 args) 33 - load memory from address at accumulator (x indexed) (2 args) 34 - load memory from address at accumulator (y indexed) (2 args) 35 - store accumulator at address (x indexed indirect) (1 args) 36 - store accumulator at address (y indirect indexed) (1 args) 37 - load memory from address at accumulator (x indexed indirect) (1 args) 38 - load memory from address at accumulator (y indirect indexed) (1 args) 39 - jump to subroutine (2 args) 40 - return from subroutine (0 args) 41 - push to stack (0 args) 42 - pull from stack (0 args) 43 - transfer x register to accumulator (0 args) 44 - transfer accumulator to x register (0 args) 45 - transfer y register to accumulator (0 args) 46 - transfer accumulator to y register (0 args) 47 - shift memory at address left (2 args) 48 - shift memory at address right (2 args) 49 - shift accumulator left (0 args) 50 - shift accumulator right (0 args)
flappy dong (by r3dqz): 4 32 7 11 185 4 60 7 11 197 7 11 198 4 245 7 11 196 4 253 7 11 192 4 240 7 0 1 4 11 6 0 9 11 200 9 11 203 9 11 204 9 0 2 36 1 13 28 1 53 11 0 1 2 0 1 25 254 28 1 44 4 254 7 0 1 4 12 6 0 36 1 13 28 1 79 11 0 1 2 0 1 25 0 28 1 70 4 0 7 0 2 7 11 189 4 240 7 0 1 1 11 186 7 11 190 4 11 7 11 191 7 11 195 39 2 219 4 0 7 0 2 7 11 189 4 240 7 0 1 1 11 185 7 11 190 7 11 186 4 5 7 11 191 4 4 7 11 195 39 2 219 4 0 7 0 2 4 240 7 0 1 4 11 7 11 191 1 11 198 7 11 189 1 11 199 7 11 190 39 3 45 4 0 7 0 2 4 240 7 0 1 4 13 7 11 191 1 11 197 7 11 198 7 11 189 1 11 196 7 11 199 7 11 190 39 3 45 4 34 7 0 2 7 11 202 4 254 7 0 1 1 11 203 7 11 189 39 3 104 4 30 7 0 2 7 11 202 4 254 7 0 1 1 11 204 7 11 189 39 3 104 1 239 254 24 1 27 2 19 4 1 7 11 193 1 11 193 24 1 28 2 50 1 239 254 24 1 28 2 50 4 0 7 11 193 4 253 7 11 192 4 0 7 11 194 11 11 194 1 11 194 24 3 28 2 69 4 0 7 11 194 11 11 192 1 11 192 21 18 11 185 1 11 185 24 54 30 2 92 24 127 29 2 92 10 3 176 1 11 185 24 127 30 2 110 4 0 7 11 185 4 0 7 11 192 14 11 197 1 11 197 24 255 28 2 165 4 60 7 11 197 1 11 185 49 49 49 49 7 11 189 1 11 184 21 18 11 189 1 11 189 50 50 50 50 50 21 17 242 7 11 196 4 23 7 11 200 11 11 203 1 11 200 50 50 50 44 33 3 195 7 239 253 1 11 200 24 0 27 2 189 14 11 200 1 11 203 24 10 28 2 205 11 11 204 4 0 7 11 203 1 239 255 24 55 28 2 205 11 11 184 10 1 87 5 6 1 11 189 49 7 11 189 1 11 190 49 7 11 190 30 2 241 11 11 189 15 28 2 221 1 11 189 21 18 0 1 1 11 190 21 18 0 2 4 4 21 18 0 2 6 0 1 11 191 36 1 11 0 2 36 1 6 63 36 1 13 36 1 13 38 1 24 13 28 3 39 10 3 176 1 11 195 36 1 40 6 0 1 11 189 7 0 2 1 11 190 23 0 1 28 3 68 4 4 21 18 0 1 1 11 191 36 1 13 36 1 13 36 1 13 36 1 45 21 17 61 46 26 0 28 3 95 11 0 1 2 0 1 25 254 28 3 53 40 4 0 7 11 201 1 11 189 49 49 44 33 3 198 7 11 190 6 0 1 11 190 49 7 11 190 4 0 29 3 137 4 12 36 1 13 26 4 28 3 123 12 4 64 21 18 0 2 1 0 2 23 11 202 28 3 164 11 0 1 11 11 201 1 11 201 24 4 28 3 115 40 4 0 7 239 253 1 239 254 24 1 28 3 192 10 1 0 10 3 176 0 16 14 34 85 85 34 34 102 34 119 119 17 102 119 102 51 17 102 68 68 119 34 119 68 51 119 119 68 119 119 119 17 34 34 119 119 85 119 119 119 17 119