Re: A86: Inferred timing...Help!!


[Prev][Next][Index][Thread]

Re: A86: Inferred timing...Help!!



I've tested this code and it sends out a high frequency signal that I
can hear on my earphones. I have just one problem. I've discovered there
is also a popping sound that is produced at random from the port. It
doesn't appear to be static, and it's not the earphones (I've tryed two
different pairs). Anyone have any possable explanation for this
sound(too many beans?).
	   -Michael
> ---------------------------------------------------------------
> #include "asm86.h"
> #include "ti86asm.inc"
> 
> .org _asm_exec_ram
> 
>         call _clrLCD
>         ld hl,$0000
>         ld (_curRow),hl
>         ld hl,title
>         call _puts
>         ld c, $07
> Port_loop:
>         ld b, $FC
>         out (c),b
>         ld b,$C0
>         out (c),b
>         jp keyloop
> 
> keyloop:
>         call $5371
>         cp $37
>         jr z,quit
>         jp Port_loop
> 
> quit:
>         ld b,$C0
>         out (c),b
>         ret
> 
> title:
>         .db "                     "
>         .db "  Michael Malluck's  "
>         .db "      PortTest       "
>         .db "       V 2.5         "
>         .db "                     "
>         .db " Press exit to exit  ",0
> 
> 
> .END
> .END
> .END


References: