After reading the Small Edit Buffers entry on wikiTI I started trying to use it. However with little luck. The article gives no examples on how to do this in z80 assembly. I managed to get a it working with parsing enabled and putting numbers into OP1, hoverver can't get it to work with parsing disabled. According to wikiTI, supposedly, with parsing disabled it should output an equation to "text_buf", however I can't find any evidence of this variable existing. When I printed the 11 bytes at OP1 to the screen it didn't display "text_buf", when I bcalled "_DisplayEditSysVar" it didn't print what I entered (it is likely unrelated, just found it in the .inc file), jsTIfied doesn't mention it in the variable list, and _ChkFindSym can't find it. Any help/clarification would be appreciated.
PS: The following is some assembly that should exit if it finds the text_buf (and it may look strange as it is sdcc z80 assembly)
Code:
PS: The following is some assembly that should exit if it finds the text_buf (and it may look strange as it is sdcc z80 assembly)
Code:
input_loop:
ld a, #3
ld (SmallEditCancelParse), a
xor a, a
ld (SmallEditColumnLeft), a
ld (SmallEditRow), a
ld a, #2
ld (SmallEditPromptString), a
ld a, #':'
ld (SmallEditPromptString+1), a
xor a, a
ld (SmallEditPromptString+2), a
inc a
ld (SmallEditRowCount), a
ld a, #96
ld (SmallEditColumnRight), a
bcall(_initsmalleditline)
bcall(_startsmalledit)
bcall(_startsmalleditreturn)
jr after_data
name_data:
.db EquObj
.ascii "text_buf"
.db 0x00
after_data:
ld hl, #name_data
rst rMOV9TOOP1
bcall(_ChkFindSym)
jp c, input_loop