I have just installed PBCC and am converting a large number of QB programs.
I have some code using DEF SEG and PEEK and POKE at characters on the screen to audit them .
Here is the Code
TADDR% is the address of the color monitor data buffer (&HB800). I am Peeking at a character a time and putting it inot IBUFF$.
FOR IDBPTR = 1 TO LEN(IBUFF$)
DEF SEG=TADDR%: MID$(IBUFF$,IDBPTR,1) = CHR$(PEEK(IDPOS)): DEF SEG
IDPOS = IDPOS + 2
NEXT IDBPTR
Can someone tell me how PBCC would handle this. I expect PBCC has different capabilities for screen use, but I am a novice. What I think I want to do is to get all my programs converted so they run as they do today, then start putting new function in. So right now I just want to figure out how PBCC would implement this.
I have some code using DEF SEG and PEEK and POKE at characters on the screen to audit them .
Here is the Code
TADDR% is the address of the color monitor data buffer (&HB800). I am Peeking at a character a time and putting it inot IBUFF$.
FOR IDBPTR = 1 TO LEN(IBUFF$)
DEF SEG=TADDR%: MID$(IBUFF$,IDBPTR,1) = CHR$(PEEK(IDPOS)): DEF SEG
IDPOS = IDPOS + 2
NEXT IDBPTR
Can someone tell me how PBCC would handle this. I expect PBCC has different capabilities for screen use, but I am a novice. What I think I want to do is to get all my programs converted so they run as they do today, then start putting new function in. So right now I just want to figure out how PBCC would implement this.
Comment