scroll left and right work in stdef and hidef adds octo test roms adds schip fonts to memory
33 lines
440 B
Plaintext
33 lines
440 B
Plaintext
###########################################
|
|
#
|
|
# Collision Detection Test
|
|
#
|
|
# Draws two overlapping sprites and
|
|
# displays the contents of the vF register.
|
|
# Should print "1".
|
|
#
|
|
###########################################
|
|
|
|
: square
|
|
0b11110000
|
|
0b11110000
|
|
0b11110000
|
|
0b11110000
|
|
|
|
: main
|
|
v0 := 20
|
|
v1 := 10
|
|
i := square
|
|
|
|
sprite v0 v1 4
|
|
v0 += 2
|
|
v1 += 2
|
|
sprite v0 v1 4
|
|
|
|
v2 := vf
|
|
v0 += 10
|
|
i := hex v2
|
|
sprite v0 v1 5
|
|
|
|
loop again
|