chip16 / chip16

The Chip16 emulation project.
https://groups.google.com/forum/#!forum/chip16
Other
95 stars 11 forks source link

New opcode: SPR with Register/Address #28

Open mwedmark opened 2 years ago

mwedmark commented 2 years ago

To be able to create pictures/resources that have their size description internally (self-containment) this would be great. F.e. this would read as a sprite of size 32x32 placed at Xpos,Ypos

LDI R0, Xpos LDI R1, Ypos LDI R2, SpriteData SPR R2 ADDI R2,2 DRW R0,R1,R2

SpriteData: db 0x10, 0x20, spritedata

tykel commented 3 months ago

This is a good addition for the next spec revision. :+1: