The QBasic / QB64 Discussion Forum      Other Subforums, Links and Downloads

 Return to Index  

Re: walk through matrix: textmode 3d (someone else's)

February 20 2006 at 3:36 PM
Michael Calkins  (Login MCalkins)
ASM Forum

Response to walk through matrix: textmode 3d (someone else's)


>to change the poke stuff to locate print

demo below.


'NumOfColumnsPerLine is usually 40 or 80
'LineNum is usually 0 to 24, 0 to 42, or 0 to 49
'ColumnNum is usually 0 to 39 or 0 to 79

'blinking is either 0 or -1
'foreground is 0 to 15
'background is 0 to 7

ColorAttrib = foreground OR (background * 16) OR (blinking AND 128)

DEF SEG = &HB800

address = ((LineNum * NumOfColumnsPerLine) + ColumnNum) * 2
POKE address, AsciiCode
POKE address + 1, ColorAttrib

This message has been edited by MCalkins on Feb 22, 2006 2:02 PM

 Respond to this message   
Response TitleAuthor and Date
*misspelled variable corrected. :-PMichael Calkins on Feb 22
Re: walk through matrix: textmode 3d (someone else's)mennonite on Feb 28
 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement  

Newbies usually go to and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums