Re: V-FORTH - Forth-83 for the VIC
Posted: Thu Dec 12, 2019 5:38 am
Hi good afternoon.
you can also do that with interrupt:
"rightshift" >>>>>> this with interrupt ?
greeting
you can also do that with interrupt:
"rightshift" >>>>>> this with interrupt ?
greeting
Code: Select all
include assembler.fs
variable charbase
5120 charbase !
8192 constant ramhi
32768 constant charset1
create daten
24 c, 24 c, 60 c, 126 c, 255 c, 24 c, 36 c, 66 c,
hex
code rightshift
xsave stx,
0 # ldx,
begin,
1400 ,x lda,
.a lsr,
1400 8 + ,x ror,
1400 10 + ,x ror,
1400 18 + ,x ror,
1400 20 + ,x ror,
1400 28 + ,x ror,
1400 30 + ,x ror,
1400 38 + ,x ror,
1400 40 + ,x ror,
1400 48 + ,x ror,
1400 50 + ,x ror,
1400 58 + ,x ror,
1400 60 + ,x ror,
1400 68 + ,x ror,
1400 70 + ,x ror,
1400 78 + ,x ror,
1400 80 + ,x ror,
1400 88 + ,x ror,
1400 90 + ,x ror,
1400 98 + ,x ror,
1400 0a0 + ,x ror,
1400 0a8 + ,x ror,
1400 ,x ror,
inx,
8 # cpx,
0= until,
xsave ldx,
next jmp,
end-code
decimal
: redefset
charbase @ ramhi over - cmove
charbase @ charbase ! ;
: cls
511 0 do 32 i 4096 + c! loop
0 0 $plot ;
: ti 250 0 do loop ;
: text
12 36864 c! 22 36866 c! 174 36867 c! 192 36869 c! ;
: gehe
charset1 redefset
205 36869 c!
cls
2047 0 do 0 5120 i + c! loop
8 0 do daten i + c@ 5120 i + c! loop
22 0 do i i 4096 + c! loop
22 0 do 4 i 37888 + c! loop
begin
ti
rightshift >>>>>>>>>>>>>>>>>>>>>>>>> this with interrupt ?????
197 c@
48 = if text then ?terminal
until ;