BBC BASIC for Windows
« Physical screen memory »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:01pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 hotthread  Author  Topic: Physical screen memory  (Read 1614 times)
ady
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 55
xx Re: Physical screen memory
« Reply #15 on: Nov 5th, 2015, 09:47am »

You can also chat to windows with BBC asm, it's amazingly flexible


50 LOMEM = LOMEM+20000
60 REMHIMEM = LOMEM+20000000
70 REMHIMEM = HIMEM-40
80
90 DIM FF$(5)
100 FF$(0)="hello"
FF$(1)="world"
110
120 REM REM REM SEE CRITICAL POINTER!!!!!
130 REM *FLOAT 64
290
300 REM SYS "SetWindowPos", @hwnd%, 0, 152, 17, 0, 0, 5

REMSYS "GetDeviceCaps", @prthdc%, 88 TO 150
REMSYS "GetDeviceCaps", @prthdc%, 90 TO 150


310
320
330 DIM code% 4000
340 FOR opt=0 TO 2 STEP 2
350 P%=code%
360 [OPT opt
.count mov dword [count],0
.word1
mov eax,^FF$(0)
mov dword [word1],eax
ret

.stor
mov ecx,[count]
mov eax,^FF$(0)
mov ebx,[eax]
mov eax,^FF$(1)
mov eax,[eax]
.stor1
push ecx
push ebx
push eax
push @hwnd%
call "MessageBox"
inc dword [count]
cmp dword [count],&10
jb stor
ret

4990
5000 ]
5010 NEXT
5020 CALL count
5030 CALL stor
5580 REMPRINT USR(stor)

5620
PRINT "Finished"
5630 END

Good luck in figuring it all out
User IP Logged

KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Physical screen memory
« Reply #16 on: Dec 7th, 2015, 6:56pm »

Don't forget that the simplest way to produce .ico files or .bmp files for conversion into sprites, is to download The Gimp (a free download) and use its graphics facilities.

Of course if you have a copy of Photoshop lying around you won't want The Gimp, but if you baulk at the cost of Photoshop, The Gimp is more than adequate.
User IP Logged

Pages: 1 2  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls