BPORT Question
[Prev][Next][Index][Thread]
BPORT Question
I am experimenting with controlling the linkport and need some advice. The following code is supposed to display three lines of text, then toggle the BPORT bits. When I run the program, it shows the text then crashes, requiring removal of all batteries. I connected it to an oscilloscope, and saw the bits go low momentarily as I ran the program. Any suggestions? Also, I am trying to make a loop that would toggle the BPORT 256 times so I can measure it on the scope. My problem is with the syntax.
Any help would be appreciated.
Mike
.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83asm.inc"
#include "tokens.inc"
.LIST
.org 9327h
call _clrlcdfull
ld hl,0203h
ld (CURROW), hl
ld hl, Str1
call _puts
ld hl,0204h
ld (CURROW), hl
ld hl, Str2
call _puts
ld hl,0205h
ld (CURROW), hl
ld hl, Str3
call _puts
LD A,D0HD1H
OUT (BPORT),A ; is used for setting D0 high, D1 high
LD A,D0LD1L
OUT (BPORT),A ; is used for setting D0 low, D1 low
ret
Str1: .db "MIKE'S ",0
Str2: .db "REMOTE",0
Str3: .db "CONTROL",0
.end