OpenCores
URL https://opencores.org/ocsvn/light8080/light8080/trunk

Subversion Repositories light8080

[/] [light8080/] [trunk/] [c/] [HELLO.LST] - Diff between revs 66 and 67

Show entire file | Details | Blame | View Log

Rev 66 Rev 67
Line 72... Line 72...
            __tstary : $042d           1069
            __tstary : $042d           1069
            __8080__ : $0001              1
            __8080__ : $0001              1
 
 
63 labels used
63 labels used
 
 
924 lines read, no errors in pass 1.
919 lines read, no errors in pass 1.
AS80 Assembler for i8080-Z180 [1.11].                                Page    3
AS80 Assembler for i8080-Z180 [1.11].                                Page    3
--------------------------------- HELLO.ASM ----------------------------------
--------------------------------- HELLO.ASM ----------------------------------
 
 
                        ; <><><>   Small-C  V1.2  DOS--CP/M Cross Compiler   <
                        ; <><><>   Small-C  V1.2  DOS--CP/M Cross Compiler   <
                        ; <><><><><>   CP/M Large String Space Version   <><><
                        ; <><><><><>   CP/M Large String Space Version   <><><
Line 892... Line 892...
                        ;main()
                        ;main()
0330 :                  __main:
0330 :                  __main:
                        ;{
                        ;{
                        ;       // configure UART baud rate - set to 9600 for 30MHz
                        ;       // configure UART baud rate - set to 9600 for 30MHz
                        ;       // BAUD = round(//16) = round(30e6
                        ;       // BAUD = round(//16) = round(30e6
                        ;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOT
                        ;       // Note: Usage of a minimum divider value of 1 will
                        ;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOT
                        ;       UBAUDL = 195;
                        ;//     UBAUDL = 195;
0330 : 21c300                   ld hl,195
                        ;       UBAUDL = 1;
 
0330 : 210100                   ld hl,1
 
0333 : 7d                       ld a,l
0333 : 7d                       ld a,l
0334 : d381                     out (129),a
0334 : d381                     out (129),a
 
 
                        ;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOT
 
                        ;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOT
 
                        ;       UBAUDH = 0;
                        ;       UBAUDH = 0;
0336 : 210000                   ld hl,0
0336 : 210000                   ld hl,0
0339 : 7d                       ld a,l
0339 : 7d                       ld a,l
033a : d382                     out (130),a
033a : d382                     out (130),a
 
 
Line 918... Line 914...
                        ;       P1DIR = 0xff;
                        ;       P1DIR = 0xff;
0342 : 21ff00                   ld hl,255
0342 : 21ff00                   ld hl,255
0345 : 7d                       ld a,l
0345 : 7d                       ld a,l
0346 : d385                     out (133),a
0346 : d385                     out (133),a
 
 
AS80 Assembler for i8080-Z180 [1.11].                                Page   16
 
--------------------------------- HELLO.ASM ----------------------------------
 
 
 
                        ;       P2DATA = 0x00;
                        ;       P2DATA = 0x00;
0348 : 210000                   ld hl,0
0348 : 210000                   ld hl,0
034b : 7d                       ld a,l
034b : 7d                       ld a,l
034c : d386                     out (134),a
034c : d386                     out (134),a
 
AS80 Assembler for i8080-Z180 [1.11].                                Page   16
 
--------------------------------- HELLO.ASM ----------------------------------
 
 
 
 
                        ;       P2DIR = 0xff;
                        ;       P2DIR = 0xff;
034e : 21ff00                   ld hl,255
034e : 21ff00                   ld hl,255
0351 : 7d                       ld a,l
0351 : 7d                       ld a,l
0352 : d387                     out (135),a
0352 : d387                     out (135),a
Line 940... Line 936...
0358 : d388                     out (136),a
0358 : d388                     out (136),a
 
 
                        ;       // enable CPU interrupt
                        ;       // enable CPU interrupt
                        ;#asm
                        ;#asm
035a : fb                       ei
035a : fb                       ei
                        ;
 
                        ;       // print message
                        ;       // print message
                        ;       printstr("Hello World!!!"); nl();
                        ;       printstr("Hello World!!!"); nl();
035b : 21ea03                   ld hl,cc1+26
035b : 21ea03                   ld hl,cc1+26
035e : e5                       push hl
035e : e5                       push hl
035f : cdc401                   call __printstr
035f : cdc401                   call __printstr
Line 983... Line 978...
039c : c1                       pop bc
039c : c1                       pop bc
039d : cdb301                   call __nl
039d : cdb301                   call __nl
                        ;       // assert bit 0 of port 1 to test external interrupt
                        ;       // assert bit 0 of port 1 to test external interrupt
                        ;       P1DATA = 0x01;
                        ;       P1DATA = 0x01;
03a0 : 210100                   ld hl,1
03a0 : 210100                   ld hl,1
AS80 Assembler for i8080-Z180 [1.11].                                Page   17
 
--------------------------------- HELLO.ASM ----------------------------------
 
 
 
03a3 : 7d                       ld a,l
03a3 : 7d                       ld a,l
03a4 : d384                     out (132),a
03a4 : d384                     out (132),a
 
 
                        ;
                        ;
                        ;       printstr("Echoing received bytes: "); nl();
                        ;       printstr("Echoing received bytes: "); nl();
 
AS80 Assembler for i8080-Z180 [1.11].                                Page   17
 
--------------------------------- HELLO.ASM ----------------------------------
 
 
03a6 : 211304                   ld hl,cc1+67
03a6 : 211304                   ld hl,cc1+67
03a9 : e5                       push hl
03a9 : e5                       push hl
03aa : cdc401                   call __printstr
03aa : cdc401                   call __printstr
03ad : c1                       pop bc
03ad : c1                       pop bc
03ae : cdb301                   call __nl
03ae : cdb301                   call __nl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.