mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Assembly errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@461 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -77,8 +77,10 @@
|
|||||||
void up_lowputc(char ch) __naked
|
void up_lowputc(char ch) __naked
|
||||||
{
|
{
|
||||||
_asm
|
_asm
|
||||||
ld a, #2(sp)
|
ld hl, #2
|
||||||
out #0xbe, a
|
add hl, sp
|
||||||
|
ld a, (hl)
|
||||||
|
out (0xbe), a
|
||||||
ret
|
ret
|
||||||
_endasm;
|
_endasm;
|
||||||
}
|
}
|
||||||
@@ -93,7 +95,7 @@ void up_lowputc(char ch) __naked
|
|||||||
char up_lowgetc(void) __naked
|
char up_lowgetc(void) __naked
|
||||||
{
|
{
|
||||||
_asm
|
_asm
|
||||||
in #0xbe, a
|
in a, (0xbe)
|
||||||
ld l, a
|
ld l, a
|
||||||
ld h, #0
|
ld h, #0
|
||||||
ret
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user