Are GET and PUT (i.e. the graphics commands in qbasic) supported in PowerBASIC?
They seem to be, but even with the Screen mode 13 libraries I cannot get them to display
sprites I create. The code is as follows:
----------------------------------------------------------------
Copy and paste code below into PB/DOS and save as 'test.bas'
----------------------------------------------------------------
'test.bas
'---------------------------------------------------------------
REM Use Assembly to jump to Mode 13
! mov ax, &h0013
! int &h10
REM Now DIMension our sprite, and load it in!
DIM earth%(673)
CLOSE 1: OPEN "earth.spr" FOR INPUT AS #1: INPUT #1, a, b: INPUT #1, ArSize: FOR load = 0 TO ArSize: INPUT #1, earth%(load): NEXT: CLOSE #1
REM Now place our sprite in the middle of the screen
PUT (120, 60), earth%, PSET
REM wait for keypress
sleep
REM Boogy on out
end
----------------------------------------------------------------
(copy and paste sprite code below into NOTEPAD and save
as 'Earth.spr')
----------------------------------------------------------------
'earth.spr
42 32
673
<snip>
* Excessive content removed by Administrator
</snip>
'rem done!
Run this code in QBASIC (with SCREEN 13 in place of the Assembly calls, of course)
and it works beautifully. Run the code in PowerBASIC and the sprites don't appear, even
though the same screen mode (13) is being accessed by the program.
http://www.geocities.com/dunric/orbit.html
Writing a small Master of Orion clone in QBASIC and (now) PowerBASIC is not an easy task.
Regards,
Dunric
[email protected]
------------------
Few cats act their age, while
most just cough up furballs.
They seem to be, but even with the Screen mode 13 libraries I cannot get them to display
sprites I create. The code is as follows:
----------------------------------------------------------------
Copy and paste code below into PB/DOS and save as 'test.bas'
----------------------------------------------------------------
'test.bas
'---------------------------------------------------------------
REM Use Assembly to jump to Mode 13
! mov ax, &h0013
! int &h10
REM Now DIMension our sprite, and load it in!
DIM earth%(673)
CLOSE 1: OPEN "earth.spr" FOR INPUT AS #1: INPUT #1, a, b: INPUT #1, ArSize: FOR load = 0 TO ArSize: INPUT #1, earth%(load): NEXT: CLOSE #1
REM Now place our sprite in the middle of the screen
PUT (120, 60), earth%, PSET
REM wait for keypress
sleep
REM Boogy on out
end
----------------------------------------------------------------
(copy and paste sprite code below into NOTEPAD and save
as 'Earth.spr')
----------------------------------------------------------------
'earth.spr
42 32
673
<snip>
* Excessive content removed by Administrator
</snip>
'rem done!
Run this code in QBASIC (with SCREEN 13 in place of the Assembly calls, of course)
and it works beautifully. Run the code in PowerBASIC and the sprites don't appear, even
though the same screen mode (13) is being accessed by the program.

http://www.geocities.com/dunric/orbit.html
Writing a small Master of Orion clone in QBASIC and (now) PowerBASIC is not an easy task.

Regards,
Dunric
[email protected]
------------------
Few cats act their age, while
most just cough up furballs.
Comment