diff options
author | B. Watson <urchlay@slackware.uk> | 2022-10-24 14:52:44 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2022-10-24 14:52:44 -0400 |
commit | db9496a84ffcf2a73ea81ab985aed710b43679d2 (patch) | |
tree | e38652d4615053cab1db29ecaa8c1c2138b7c0bf | |
parent | 0e598b8266290f915c827fd5ada6a0a09fb174e2 (diff) | |
download | dla-asm-db9496a84ffcf2a73ea81ab985aed710b43679d2.tar.gz |
Version 0.0.4, run with CRITIC set
-rw-r--r-- | dla.s | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -47,7 +47,7 @@ .include "io.s" ; printchrx and getchrx msg: .byte "Diffusion Limited Aggregate",$9b - .byte "Urchlay's ASM version 0.0.3",$9b,$9b + .byte "Urchlay's ASM version 0.0.4",$9b,$9b .byte "How many particles [",.sprintf("%d", DEFAULTPART),"]? ",$0 init: ; set default particles (if user just hits return) @@ -130,14 +130,13 @@ usedefault: xex_org loadaddr main: ;;; start of main() jsr initscreen - ; this stuff isn't working, commented out for now: ; wait for shadow regs to get updated... - ;lda RTCLOK+2 -;wl: - ;cmp RTCLOK+2 - ;beq wl - ;lda #1 ; ...turn off shadow reg updates (tiny speed boost) - ;sta CRITIC + lda RTCLOK+2 +wl: + cmp RTCLOK+2 + beq wl + lda #1 ; ...turn off shadow reg updates (tiny speed boost) + sta CRITIC lda #0 sta particles sta particles+1 @@ -310,7 +309,7 @@ plotsetup: ;adc screenptr+1 ;sta pixptr+1 - ; now, use a table, which makes this run ~3.5x as fast! + ; now, use a table, which makes this run ~2x as fast! ldx cursor_y lda lineaddrs_l,x sta pixptr @@ -431,8 +430,8 @@ checkbounds: jsr unplot ldx #DMA_ON dontplot: - stx SDMCTL ; nope, shadow updates are off... - ;stx DMACTL + ;stx SDMCTL ; nope, shadow updates are off... + stx DMACTL jsr check_neighbors bne stick beq drunkwalk |