source: Thomson/code/asm/template/main.asm

Last change on this file was 50, checked in by pulkomandy, 5 years ago

Add a template for ASM projects.

  • Improvements welcome!
File size: 581 bytes
Line 
1; MO5 Test stuff
2
3        ORG $3000
4                ; Could be a little lower ?
5
6main
7        ; Disable interrupts
8        ORCC #$50
9
10        ; Paint screen with 0xAA pattern in FORME
11        LDA #$AA
12        LDX #$1F40
13boucle
14        STA ,-X
15        CMPX #0
16        BNE boucle
17
18        ; Set the border (also to 0xAA)
19        STA $A7C0
20
21        ; COLOR memory to 0xCF
22        LDA #$AD
23        LDX #$1F40
24boucle2
25        STA ,-X
26        CMPX #0
27        BNE boucle2
28
29        ; Sync on VBL
30mainloop
31
32        ; ... do effects !
33        ; Twister
34        ; Plasma
35        ; Scroll
36        ; Dots
37        ; Draw squares
38        ; ...
39        ; Sprites
40        ; Wireframe 3D
41
42        ; MEA8000 Music
43
44        JMP mainloop
45
46; DATAS
47; Location for framecounter to decide when to switch effects
48
49        END main
Note: See TracBrowser for help on using the repository browser.