summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/examples/random/obj
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-04-10 15:14:00 -0400
committerAndrew Opalach <andrew@akon.city> 2019-04-10 15:14:00 -0400
commit60699af63f92f43cc4b4b9e3050fcdd2a8468281 (patch)
tree20a18af2774daa43ae7f4352dd032a24f7e06075 /frontends/calculator/CEdev/examples/random/obj
parent4527bc20241068731c62101d0467d416119ec0c4 (diff)
downloadcetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.tar.gz
cetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.tar.bz2
cetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.zip
add opengl fronend, remove sdl frontend, refactor build system
Diffstat (limited to 'frontends/calculator/CEdev/examples/random/obj')
-rw-r--r--frontends/calculator/CEdev/examples/random/obj/main.src69
1 files changed, 69 insertions, 0 deletions
diff --git a/frontends/calculator/CEdev/examples/random/obj/main.src b/frontends/calculator/CEdev/examples/random/obj/main.src
new file mode 100644
index 0000000..9aa4a54
--- /dev/null
+++ b/frontends/calculator/CEdev/examples/random/obj/main.src
@@ -0,0 +1,69 @@
+; Zilog eZ80 ANSI C Compiler Release 3.4
+; -optsize -noreduceopt -nomodsect -peephole -globalopt
+; -localcse -const=ROM
+ FILE "SRC\MAIN.C"
+ .assume ADL=1
+ SEGMENT CODE
+; 1 #include <stdbool.h>
+; 2 #include <stddef.h>
+; 3 #include <stdint.h>
+; 4 #include <tice.h>
+; 5
+; 6 #include <stdio.h>
+; 7 #include <stdlib.h>
+; 8 #include <string.h>
+; 9
+; 10 void main(void) {
+_main:
+ LD HL,-3
+ CALL __frameset
+; 11 /* Fill VRAM with random data */
+; 12 uint32_t *lcd_Ram_i, *lcd_Ram_end = (uint32_t *) ((int) lcd_Ram + LCD_SIZE);
+; 13 for (lcd_Ram_i = (uint32_t *) lcd_Ram; lcd_Ram_i < lcd_Ram_end; lcd_Ram_i++) {
+ LD BC,13893632
+ LD (IX+-3),BC
+ JR L_3
+L_1:
+; 14 *lcd_Ram_i = random();
+ CALL _random
+ LD IY,(IX+-3)
+ LD (IY),HL
+ LD (IY+3),E
+ LEA IY,IY+4
+ LD (IX+-3),IY
+; 15 }
+L_3:
+ LD BC,14047232
+ LD HL,(IX+-3)
+ OR A,A
+ SBC HL,BC
+ JR C,L_1
+; 16
+; 17 /* Wait for a key press */
+; 18 while (!os_GetCSC());
+L_5:
+ CALL _os_GetCSC
+ OR A,A
+ JR Z,L_5
+; 19 }
+ LD SP,IX
+ POP IX
+ RET
+
+
+;**************************** _main ***************************
+;Name Addr/Register Size Type
+;_os_GetCSC IMPORT ----- function
+;_random IMPORT ----- function
+;lcd_Ram_i IX-3 3 variable
+
+
+; Stack Frame Size: 9 (bytes)
+; Spill Code: 0 (instruction)
+
+
+ XREF _os_GetCSC:ROM
+ XREF _random:ROM
+ XREF __frameset:ROM
+ XDEF _main
+ END