Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- --Spawn line section
- xLoc = memory.read_s16_le(0x000BBE)
- yLoc = memory.read_s16_le(0x000BFA)
- spawnLineX = xLoc % 64
- spawnLineY = (yLoc + 16) % 64
- for i=-63,300,64 do
- gui.drawLine(i-spawnLineX, -1, i-spawnLineX, 225, 0xB0FFFFFF)
- end
- for i=-65,300,64 do
- gui.drawLine(-1, i-spawnLineY, 257, i-spawnLineY, 0xB0FFFFFF)
- end
- --RNG values on screen section
- RNG1 = string.upper(string.format("%02x", memory.readbyte(0x000024)))
- RNG2 = string.upper(string.format("%02x", memory.readbyte(0x000026)))
- RNG3 = string.upper(string.format("%04x", memory.read_s16_le(0x7E4A7A),"System Bus"))
- gui.pixelText(220, 8, RNG1 .. ", " .. RNG2 .. "\n" .. RNG3)
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement