3 ms·
// Zero page variables .const zp_x = $FB .const zp_y = $FE .const zp_dx = $101 .const zp_dy = $104 AI extended zero page, I see… (zp_dx and zp_dy are i
by vardump 2y ago
// Zero page variables
.const zp_x = $FB
.const zp_y = $FE
.const zp_dx = $101
.const zp_dy = $104
AI extended zero page, I see… (zp_dx and zp_dy are in 6502 hardcoded stack range, not in zero page at all).
- sehugg 2y agoI've noticed that LLMs have a hard time remembering all the constraints of 8-bit programming. Like sometimes it assumes that 6502 registers can have a value above 255, or in C it assumes that ints have 32/64 bits.
- surfingdino 2y ago$101? $104? This looks familiar. If you try to train an LLM on series of lottery ticket numbers, say 1-50 and then ask for a set of numbers based on the training data LLMs sometimes will give you numbers like 110 or 101.
- deleted 2y ago[deleted]
- Dwedit 2y agoAlso, if you have an array living in the zeropage, and you use Zeropage,X or Zeropage,Y instructions to try to access beyond address FF, it will wrap back to 00. Because it's a zeropage instruction that can't go outside the zeropage.