URL
https://opencores.org/ocsvn/light8080/light8080/trunk
[/] [light8080/] [trunk/] [c/] [hello.asm] - Diff between revs 66 and 67
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 66 |
Rev 67 |
Line 776... |
Line 776... |
;main()
|
;main()
|
__main:
|
__main:
|
;{
|
;{
|
; // configure UART baud rate - set to 9600 for 30MHz clock
|
; // configure UART baud rate - set to 9600 for 30MHz clock
|
; // BAUD = round(//16) = round(30e6/9600/16) = 195
|
; // BAUD = round(//16) = round(30e6/9600/16) = 195
|
;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTI
|
; // Note: Usage of a minimum divider value of 1 will accelerate the RTL simulation.
|
;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTI
|
; UBAUDL = 195;
|
;// UBAUDL = 195;
|
ld hl,195
|
; UBAUDL = 1;
|
|
ld hl,1
|
|
ld a,l
|
ld a,l
|
out (129),a
|
out (129),a
|
|
|
;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTI
|
|
;//MOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTIMOTI
|
|
; UBAUDH = 0;
|
; UBAUDH = 0;
|
ld hl,0
|
ld hl,0
|
ld a,l
|
ld a,l
|
out (130),a
|
out (130),a
|
|
|
Line 821... |
Line 817... |
out (136),a
|
out (136),a
|
|
|
; // enable CPU interrupt
|
; // enable CPU interrupt
|
;#asm
|
;#asm
|
ei
|
ei
|
;
|
|
; // print message
|
; // print message
|
; printstr("Hello World!!!"); nl();
|
; printstr("Hello World!!!"); nl();
|
ld hl,cc1+26
|
ld hl,cc1+26
|
push hl
|
push hl
|
call __printstr
|
call __printstr
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.