diff options
author | Nao Pross <naopross@thearcway.org> | 2017-10-19 17:52:58 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-10-19 17:52:58 +0200 |
commit | fe1ac63fc152ea70bc32b9d514841a5f806838ed (patch) | |
tree | 434d336625c9564ec20ddc2834b72f5551f53856 /sw/z80/tests/pio/build/main.asm | |
parent | Move test units to z80/tests, and drivers are now statically linked (diff) | |
download | z80uPC-fe1ac63fc152ea70bc32b9d514841a5f806838ed.tar.gz z80uPC-fe1ac63fc152ea70bc32b9d514841a5f806838ed.zip |
Fix for PIO driver and its test and deletes build files
Diffstat (limited to 'sw/z80/tests/pio/build/main.asm')
-rw-r--r-- | sw/z80/tests/pio/build/main.asm | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/sw/z80/tests/pio/build/main.asm b/sw/z80/tests/pio/build/main.asm deleted file mode 100644 index 453eead..0000000 --- a/sw/z80/tests/pio/build/main.asm +++ /dev/null @@ -1,80 +0,0 @@ -;-------------------------------------------------------- -; File Created by SDCC : free open source ANSI-C Compiler -; Version 3.6.0 #9615 (Linux) -;-------------------------------------------------------- - .module main - .optsdcc -mz80 - -;-------------------------------------------------------- -; Public variables in this module -;-------------------------------------------------------- - .globl _main - .globl _pio_write - .globl _pio_set_mode -;-------------------------------------------------------- -; special function registers -;-------------------------------------------------------- -;-------------------------------------------------------- -; ram data -;-------------------------------------------------------- - .area _DATA -;-------------------------------------------------------- -; ram data -;-------------------------------------------------------- - .area _INITIALIZED -;-------------------------------------------------------- -; absolute external ram data -;-------------------------------------------------------- - .area _DABS (ABS) -;-------------------------------------------------------- -; global & static initialisations -;-------------------------------------------------------- - .area _HOME - .area _GSINIT - .area _GSFINAL - .area _GSINIT -;-------------------------------------------------------- -; Home -;-------------------------------------------------------- - .area _HOME - .area _HOME -;-------------------------------------------------------- -; code -;-------------------------------------------------------- - .area _CODE -;main.c:3: void main(void) -; --------------------------------- -; Function main -; --------------------------------- -_main:: -;main.c:7: pio_set_mode(PIO_A, PIO_MODE_BYTE_OUT, 0); - xor a, a - push af - inc sp - ld hl,#0x0001 - push hl - ld l, #0x00 - push hl - call _pio_set_mode - pop af - pop af - inc sp -;main.c:9: while (1) { - ld c,#0x00 -00102$: -;main.c:10: pio_write(PIO_A, j++); - ld b,c - inc c - push bc - push bc - inc sp - ld hl,#0x0000 - push hl - call _pio_write - pop af - inc sp - pop bc - jr 00102$ - .area _CODE - .area _INITIALIZER - .area _CABS (ABS) |