From 4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Wed, 24 Apr 2019 11:03:58 -0400 Subject: add pause to curses, remove unfinished calculator frontend --- .../CEdev/examples/fileio_detect/obj/main.src | 182 --------------------- 1 file changed, 182 deletions(-) delete mode 100644 frontends/calculator/CEdev/examples/fileio_detect/obj/main.src (limited to 'frontends/calculator/CEdev/examples/fileio_detect/obj') diff --git a/frontends/calculator/CEdev/examples/fileio_detect/obj/main.src b/frontends/calculator/CEdev/examples/fileio_detect/obj/main.src deleted file mode 100644 index aef9b8b..0000000 --- a/frontends/calculator/CEdev/examples/fileio_detect/obj/main.src +++ /dev/null @@ -1,182 +0,0 @@ -; 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 -; 2 #include -; 3 #include -; 4 #include -; 5 -; 6 #include -; 7 #include -; 8 #include -; 9 -; 10 #include -; 11 -; 12 /* Function prototypes */ -; 13 void printText(int8_t xpos, int8_t ypos, const char *text); -; 14 -; 15 /* Main Function */ -; 16 void main(void) { -_main: - LD HL,-10 - CALL __frameset -; 17 /* Declare some variables -- search_pos must be NULL to begin with */ -; 18 uint8_t *search_pos = NULL; - LD BC,0 - LD (IX+-10),BC -; 19 int8_t y = 0; - LD (IX+-1),0 -; 20 ti_var_t myVar; -; 21 char *var_name; -; 22 -; 23 /* First couple bytes of the LibLoad AppVar, which is known to exist * -; 24 /* Technically is a null-terminated string, if an odd looking one */ -; 25 const char search_string[] = { 0xBF, 0xFE, 0x00 }; - LEA DE,IX+-7 -; 26 -; 27 /* Clear the homescreen */ -; 28 os_ClrHome(); - LD BC,_asm_ClrLCD - PUSH BC - LD HL,_0temp0 - LD BC,3 - LDIR - CALL __OS - POP BC - LD BC,_asm_HomeUp - PUSH BC - CALL __OS - POP BC - LD BC,_asm_DrawStatusBar - PUSH BC - CALL __OS - POP BC - JR L_4 -; 29 -; 30 /* Find all of the variables that start with this string */ -; 31 while ((var_name = ti_Detect(&search_pos, search_string)) != NULL) { -L_5: -; 32 /* Print the name of the variable (Should be LibLoad) */ -; 33 printText(0, y++, var_name); - LD C,(IX+-1) - INC (IX+-1) - LD DE,(IX+-4) - PUSH DE - LD B,0 - PUSH BC - LD BC,0 - PUSH BC - CALL _printText - POP BC - POP BC - POP BC -; 34 } -L_4: - PEA IX+-7 - PEA IX+-10 - CALL _ti_Detect - POP BC - POP BC - LD (IX+-4),HL - CALL __icmpzero - JR NZ,L_5 -; 35 -; 36 /* Wait for a key */ -; 37 while (!os_GetCSC()); -L_8: - CALL _os_GetCSC - OR A,A - JR Z,L_8 -; 38 -; 39 /* Close all open files */ -; 40 ti_CloseAll(); - CALL _ti_CloseAll -; 41 } - LD SP,IX - POP IX - RET - - -;**************************** _main *************************** -;Name Addr/Register Size Type -;_ti_CloseAll IMPORT ----- function -;_os_GetCSC IMPORT ----- function -;_ti_Detect IMPORT ----- function -;_printText IMPORT ----- function -;_asm_DrawStatusBar IMPORT ----- function -;_asm_HomeUp IMPORT ----- function -;_asm_ClrLCD IMPORT ----- function -;__OS IMPORT ----- function -;_0temp0 STATIC 3 variable -;search_pos IX-10 3 variable -;search_string IX-7 3 variable -;var_name IX-4 3 variable -;y IX-1 1 variable - - -; Stack Frame Size: 16 (bytes) -; Spill Code: 0 (instruction) - - - SEGMENT TEXT -_0temp0: - DB 191 - DB 254 - DB 0 - SEGMENT CODE -; 42 -; 43 /* Draw text on the homescreen at the given X/Y location */ -; 44 void printText(int8_t xpos, int8_t ypos, const char *text) { -_printText: - CALL __frameset0 -; 45 os_SetCursorPos(ypos, xpos); - LD C,(IX+6) - LD B,0 - PUSH BC - LD C,(IX+9) - PUSH BC - CALL _os_SetCursorPos - POP BC - POP BC -; 46 os_PutStrFull(text); - LD BC,(IX+12) - PUSH BC - CALL _os_PutStrFull - POP BC -; 47 } - LD SP,IX - POP IX - RET - - -;**************************** _printText *************************** -;Name Addr/Register Size Type -;_os_PutStrFull IMPORT ----- function -;_os_SetCursorPos IMPORT ----- function -;text IX+12 3 parameter -;ypos IX+9 1 parameter -;xpos IX+6 1 parameter - - -; Stack Frame Size: 15 (bytes) -; Spill Code: 0 (instruction) - - - XREF _ti_Detect:ROM - XREF _ti_CloseAll:ROM - XREF _asm_DrawStatusBar:ROM - XREF _asm_ClrLCD:ROM - XREF _asm_HomeUp:ROM - XREF __OS:ROM - XREF _os_GetCSC:ROM - XREF _os_PutStrFull:ROM - XREF _os_SetCursorPos:ROM - XREF __frameset0:ROM - XREF __frameset:ROM - XREF __icmpzero:ROM - XDEF _printText - XDEF _main - END -- cgit v1.2.3-101-g0448