[A83] Re: Matrices, ASM
[Prev][Next][Index][Thread]
[A83] Re: Matrices, ASM
>At 02:41 2001-05-25, you wrote:
>>I want an ASM routine to read Matrix A and display it like a sprite, so I
>>guess so.
>
>That is a highly inefficient way to transfer a sprite to the asmprogram
>though...
>you should think of a better way... maybe a string with hexcodes or
something?
>not very efficient either, but a quite nice mix between efficiency and
>possibility to edit the sprite easily on the calc.
>It is so unefficient that the speedgain is very little, it would be like a
>100 times faster with a better way of transferring the sprite.
XChess uses a great method for that. I don't know if it's smaller.
[code]
"111110010011111"->Str1
;1111
;1001
;1001
;1111
for(x,0,12,4) ;0 to 12 step 4
for(y,1,4) ;1 to 4
if sub(Str1,x+y,1)="1"
pxl-on(x,y)
end
end
>///Olle
Here is my 'MasterMind' (correct Pegs?), which uses the same drawing
routine. I also attached them, and I hope it wil come through.
--Begin of .eml-copied base64 encoded part
This is a multi-part message in MIME format.
------=_NextPart_000_0087_01C0E7A1.D4D8C1E0
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: 7bit
------=_NextPart_000_0087_01C0E7A1.D4D8C1E0
Content-Type: application/octet-stream;
name="Mdraw.8xp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Mdraw.8xp"
KipUSTgzRioaCgBQcm9ncmFtIGZpbGUgZGF0ZWQgMDUvMjgvMDEsIDE4OjA4AEOSRPBHIgAmAQ0A
FQEFTURSQVcAAAAAABUBEwEqUWowgzGDMj8qQ2pLT0xPTRBYET8qW2pSSUoQWRE/zlFqMD/PP6E2
W3E0KzZDcDMRP6E2W3EzKzZDcDIRP6E2W3E0KzZDcDIRP6E2W3EzKzZDcDMRP9dURT/UP85RajE/
KjAxMTAxMDAxMTAwMTAxMTAqBKoAP85RajI/KjAxMTAxMTExMTExMTAxMTAqBKoAP9NWKzArMTIr
NBE/01crMSs0ET/OuwyqACtWcFcrMRFqKjEqP6E2W3BWgzRxNSs2Q3BXET/UP9Q/1lRFPipLU1Q/
kzZbcTYrNoI1cDVwNkMrSxE/zlFvMD/PP9NWKzZbcTYrNlsRP9NXKzM0cDZDKzM4cDZDET+jVitX
ET/UP9Q/1JZT
------=_NextPart_000_0087_01C0E7A1.D4D8C1E0
Content-Type: application/octet-stream;
name="Mmind.8xp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Mmind.8xp"
KipUSTgzRioaCgBQcm9ncmFtIGZpbGUgZGF0ZWQgMDUvMjgvMDEsIDE4OjA4AEOSRPBHIgCBAw0A
cAMFTU1JTkQAAAABAHADbgPWVE4+KlS7tLvDu8ROP94qQbuwu767xLuwu7wpu7G7tLvFu8K7xLu0
u76vKj/eKk1BWGo1Kj/cTj/OTmw1PE5rMT/XVE4/1kJHPipCRUdJTj8wBFs/6j+XP34JP4Y/4T/T
QSswKzI0KzYRP5NBKzArEEFwNhGDNhE/1D+TMzMrMCsqTbuwu8O7xLu0u8K7vbu4u767sykyOjUq
ET+TMzkrMCsqSru0Kbu3u7S7sbvEKU4pu7G7tLvFu8K7xLu0u74qET+TMzkrMjUrThE/kzQ1KzAr
Kke7tLuxu8K7xbu4u7opMSm7xIO7vSk4KhE/KldBQUcpSEVUKU5JRVQpREUpVk9MR0VOREUpUkVx
KUdFTFMpVEUpVkVSQU5ERXFSRU6DV0VHKVRFKUhBTEVOLS0tLT+TNTErMCsqELuyESlau7S7tLu6
u7+7tClxKVS7tLu6u7S7vru0u74+KbvIQ7u3u7S7w7vDKhE/kzU3KzArKrvHu8e7xzq7yru0u7S7
uru/u7Q6u7K7ubuxOru+u7S7xCoRP7sKMSs4KzURBF0APzAEWz/SW2pOP1twMQRbPzAEQz8wBEc/
0kNqNT9DcDEEQz/SS2o5MjxLajkzPEtqOTQ8S2o4MjxLajgzPEtqODQ8S2o3MjxLajczP60ESz/U
P85LajkyPzEESz/OS2o5Mz8yBEs/zktqOTQ/MwRLP85LajgyPzQESz/OS2o4Mz81BEs/zktqODQ/
NgRLP85LajcyPzcESz/OS2o3Mz84BEs/MARRP9NaKzErNRE/zktqXQAQWhE/MQRRP9Q/zktqXQAQ
QxE/zz8yBFE/R3AxBEc/1D9fTURSQVc/zkdqNT/XRU4/1D4qQz/UPipbP5MzMis1MCsqVru0u8K7
vLu/u8K7tLu+LS0tKhE/3l0AP9g/10lOPipJTlY/1kVOPipFTkQ/kzMyKzUwKypHu7S7x7u/u767
vru0u74tLS0qET/WSU4/KtNLKzErMxE/00ErNDkrODkRP9NCKzMyKzM4ET+jQitBET/UPyrUP9Q/
4DErMSsqKhE/5ipLu7i7tLvDKbu0u7S7vrvEu7m7tCorKk67v7u2Kbu0u7S7vim7uru0u7S7wior
QkcrKlO7xLu/u8C7wLu0u74qK1BRET/WUFE/3ipXu7C7xLu5u7QtKgVl
------=_NextPart_000_0087_01C0E7A1.D4D8C1E0--
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: MMIND.8XP
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: MDRAW.8XP
Follow-Ups: