Addr Org Instruction Label Opcode Operand ---- --- ----------- ----- ------ ------- 0000 00 B4 C4 04 LONG 80000000 ; Clock Freq 0004 6F BYTE XTAL1_PLL16x ; Clock Mode 0005 1A BYTE $1A ; Checksum 0006 10 00 WORD $0010 ; PBASE - Base of Program 0008 D0 1E WORD $1ED0 ; VBASE - Base of Variables 000A D8 1E WORD $1ED8 ; SBASE - Base of Stack 000C 18 00 WORD $0018 ; PINIT - Initial Program Counter 000E DC 1E WORD $1EDC ; SINIT - Initial Stack Pointer 0010 PBASE: ALIGN OBJECT 0010 C0 1E 02 00 X1: LINK VBASE, 2 ; +0 - First Object 0014 08 00 00 00 X2: LINK S3 ; +1 0018 PINIT: ALIGN SPIN 0018 35 S3: PUSH 0 0019 37 04 PUSH $20 001B 35 PUSH 0 001C 2C COGISUB 001D 00 ; ---- FRAME CALL WITH RETURN VALUE 001E 00 ; ---- FRAME CALL WITH RETURN VALUE 001F 00 ; ---- FRAME CALL WITH RETURN VALUE ALIGN ORG 0 0020 000 16 2A BF A0 A4: MOV $195, $016 0024 001 0A 2C FF A0 MOV $196, #$0A 0028 002 95 2D 3F 08 WRLONG $196, $195 002C 003 04 2A FF 80 ADD $195, #$04 0030 004 00 2C FF A0 MOV $196, #$00 0034 005 95 2D 3F 08 WRLONG $196, $195 0038 006 04 2A FF 80 ADD $195, #$04 003C 007 95 2D 3F 08 WRLONG $196, $195 0040 008 04 2A FF 80 ADD $195, #$04 0044 009 95 2D 3F 08 WRLONG $196, $195 0048 00A 04 2A FF 80 ADD $195, #$04 004C 00B 95 2F 3C 08 WRLONG $017, $195 0050 00C 04 2A FF 80 ADD $195, #$04 0054 00D 95 31 3C 08 WRLONG $018, $195 0058 00E 04 2A FF 80 ADD $195, #$04 005C 00F 95 33 3C 08 WRLONG $019, $195 0060 010 88 2C FF A0 MOV $196, #$88 0064 011 02 2C FF 2C SHL $196, #$02 0068 012 16 2A BF A0 MOV $195, $016 006C 013 10 2A FF 2C SHL $195, #$10 0070 014 95 2D BF 68 OR $196, $195 0074 015 02 2C 7F 0C COGINIT $196 0078 016 00 7E 00 00 V2: LONG $7E00 007C 017 80 7E 00 00 V4: IF_NEVER WRBYTE $03F, $080 0080 018 80 7F 00 00 V5: IF_NEVER WRBYTE $03F, $180 0084 019 C0 1C 00 00 A5: IF_NEVER WRBYTE $00E, $0C0 0088 01A F0 35 BF A0 MOV $19A, PAR 008C 01B 9A 2F BF A0 MOV $197, $19A 0090 01C 10 2E FF 80 ADD $197, #$10 0094 01D 97 2F BF 08 RDLONG $197, $197 0098 01E 9A 33 BF A0 MOV $199, $19A 009C 01F 14 32 FF 80 ADD $199, #$14 00A0 020 99 33 BF 08 RDLONG $199, $199 00A4 021 01 2C FF 0E COGID $196 WZ 00A8 022 01 88 E9 A0 IF_Z MOV $0C4, #$01 00AC 023 1F 88 E9 2C IF_Z SHL $0C4, #$1F 00B0 024 FF 2C FF A0 MOV $196, #$FF 00B4 025 10 2C FF 2C SHL $196, #$10 00B8 026 B2 2C AB 68 IF_Z OR $196, $0B2 00BC 027 96 ED BF A0 MOV DIRA, $196 00C0 028 AA 2C FF A0 MOV $196, #$AA 00C4 029 10 2C FF 2C SHL $196, #$10 00C8 02A B2 2C AB 68 IF_Z OR $196, $0B2 00CC 02B 96 E9 BF 68 OR OUTA, $196 00D0 02C 01 2C EB A0 IF_Z MOV $196, #$01 00D4 02D 0E 2C EB 2C IF_Z SHL $196, #$0E 00D8 02E F1 2D AB 80 IF_Z ADD $196, CNT 00DC 02F 00 2C EB F8 IF_Z WAITCNT $196, #$00 00E0 030 9A 29 BF A0 MOV $194, $19A 00E4 031 18 28 FF 80 ADD $194, #$18 00E8 032 19 00 7C 5C JMP #$019