You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
BOOKMARK THIS PAGE !
https://www.exxosforum.co.uk:8085/IP_CHECK/
You can unban yourself if needed. It also sends me reports to investigate the ban.
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Storing screen data in ASM code ?

News,announcements,programming,fixes,game patches & discussions.
User avatar
exxos
Site Admin
Site Admin
Posts: 28094
Joined: 16 Aug 2017 23:19
Location: UK

Storing screen data in ASM code ?

Post by exxos »

Rather than load a picture from file to screen, does anyone know how to load this into a ASM routine as DATA and copy it to the screen ?

I can do this in basic,but it takes 8 seconds to poke a single pixel line to screen :(
User avatar
thorsten.otto
Posts: 148
Joined: 04 Nov 2019 02:20

Re: Storing screen data in ASM code ?

Post by thorsten.otto »

Most assemblers have an INCBIN directive or similar. With this, you can include any binary file into the executable. From there, just copy it to screen.

Alternatively, you can write a simple tool that spits out "dc.b" directives, and include that.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7305
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: Storing screen data in ASM code ?

Post by stephen_usher »

You mean something a like:

Code: Select all

		LEA #DATA_START, A0
		LEA #SCR_START, A1
		MOVE.L #SCR_SIZE_IN_LONGS, D0
Loop:		MOVE.L (A0)+,(A1)+
		DBNE D0, Loop
I'm trying to remember my M68K assembler from a long time ago.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
thorsten.otto
Posts: 148
Joined: 04 Nov 2019 02:20

Re: Storing screen data in ASM code ?

Post by thorsten.otto »

Oh, almost forgot, there is also a nice tutorial made by Vincent,

Return to “SOFTWARE PROGRAMMING & DISCUSSION”

Who is online

Users browsing this forum: CCBot and 0 guests