This is how I save and load the contents of screen 0 to disk
savescreen:
OldX% = pos(0) : OldY% = csrlin : OldColor% = pbvScrnTxtAttr
DEF SEG = &hB800 : BSAVE "SCREEN.TMP", 0, 4000
loadscreen:
DEF SEG = &hB800 : BLOAD "SCREEN.TMP"
ct% = OldColor% and 15 : cb% = OldColor% \ 16
color ct%, cb% : locate OldY%, OldX%
I'm wondering if this is correct.
When I use the program from a Win98 dos box, sometimes windows reports that DOS has performed an illegal opperation.
Thanks
savescreen:
OldX% = pos(0) : OldY% = csrlin : OldColor% = pbvScrnTxtAttr
DEF SEG = &hB800 : BSAVE "SCREEN.TMP", 0, 4000
loadscreen:
DEF SEG = &hB800 : BLOAD "SCREEN.TMP"
ct% = OldColor% and 15 : cb% = OldColor% \ 16
color ct%, cb% : locate OldY%, OldX%
I'm wondering if this is correct.
When I use the program from a Win98 dos box, sometimes windows reports that DOS has performed an illegal opperation.
Thanks
Comment