20 résultats trouvés

par Garland
30 oct. 2019 14:31
Forum : Développements actuels
Sujet : Rossonero (new MO6 game)
Réponses : 4
Vues : 228

Re: Rossonero (new MO6 game)

Well, around 600 lines, take a look to the code: https://github.com/cttpla/Rossonero/blob/master/Rossonero_PC128/source/Rssn.bas Not the best code around since i made this in the very spare time. Same for the images, i found some real pics on the web and downgraded them to 160x100x2 to avoid color c...
par Garland
27 oct. 2019 10:55
Forum : Développements actuels
Sujet : Rossonero (new MO6 game)
Réponses : 4
Vues : 228

Re: Rossonero (new MO6 game)

Daniel a écrit :
27 oct. 2019 10:17
(...)
That would be nice, thank you Daniel :)

And thank you so much also for the .exe file :) you are so kind brave man :)
par Garland
26 oct. 2019 21:39
Forum : Développements actuels
Sujet : Rossonero (new MO6 game)
Réponses : 4
Vues : 228

Rossonero (new MO6 game)

Hi guys, hope you're all good. Today i won a prize in a retrocomputing event with a game i wrote for MO6, it's done in BASIC with some ASM routines to draw pictures. Due to the topic of the "challenge" (the city of Milan) the game unfortunately is only in italian language, but you are totally free t...
par Garland
07 juil. 2019 10:13
Forum : Développements actuels
Sujet : [MOTO] BASIC Compiler .. ?
Réponses : 8
Vues : 910

Re: [MOTO] BASIC Compiler .. ?

Hi, it's me. :lol: Before shooting at the stars or reinventing the wheel, I would advise to have a look at two very nice initiatives back in the days : 1. Speedy Wonder : a BASIC compiler on Thomson 2. L'interpréteur BASIC du TO7 , a book that explains in depth how to add new instructions to BASIC ...
par Garland
23 juin 2019 19:41
Forum : Développements actuels
Sujet : 3 Voices Music on MO6
Réponses : 4
Vues : 216

Re: 3 Voices Music on MO6

Thanks sam, i can read french, nice and fun article :) very explicative as you as well :) how hard was to transcript the code from paper in those old days :D
par Garland
23 juin 2019 18:17
Forum : Développements actuels
Sujet : [MOTO] BASIC Compiler .. ?
Réponses : 8
Vues : 910

[MOTO] BASIC Compiler .. ?

A little premise. Some time ago, I started to work on a shooter for MO6, 100% plain asm. I managed to use double buffer with scrolling screen, collisions, animations and whatever. I want to thank Fool-Duplex for that, because he has had the monk's patience to teach me and to help me with my issues. ...
par Garland
23 juin 2019 00:06
Forum : Développements actuels
Sujet : 3 Voices Music on MO6
Réponses : 4
Vues : 216

Re: 3 Voices Music on MO6

Sam, do you have a link which can explain how to program the sound voices? I would start from theory before to have some pratice ...
par Garland
22 juin 2019 19:35
Forum : Développements actuels
Sujet : 3 Voices Music on MO6
Réponses : 4
Vues : 216

3 Voices Music on MO6

Hi guys, here in Italy the best magazines at time were all from Jackson Editions. They ran also a series dedicated to PC128 OP, and here' s a code from 1989 which can play music on 3 channels. Now probably this is taken from a reverse engineering of Logiciel's M3V, however it uses new tokens for sto...
par Garland
18 juin 2019 13:02
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

Sorry for being late but i was away for a few days.. Yes, i'm protecting the code with CLEAR and i was trying to understand where to store my assets in memory. https://paolozaino.files.wordpress.com/2018/02/mo6-pc128-memory-map-721.png?w=620 If i write: ADR = VARPTR(MYASSET) FOR I = ADR TO ADR+NUMBY...
par Garland
12 juin 2019 14:25
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

ADR = VARPTR(L%) ' get LSB address '2A6D 2AAC POKE &H433D, ADR@256 ' integer division to get MSB of address POKE &H433E, ADR AND 255 ' bit mask to get LSB of address Sometimes this code doesn't put $XXXX but #$XXXX (wrote as immediate) in the address, i see it on debugger. If the code has to put $2A...
par Garland
12 juin 2019 01:11
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

Well, i just need the bg color, so if its value is neg there's no collision. However, with you code i could store the same value for two different colors to manage transparent pixels (like those around the trees) while keeping the collision check. Thanks! A question: sometimes, if i have LDD $xxxx, ...
par Garland
11 juin 2019 14:12
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

Here's a little demo - this is all basic except the drawing and input part. The speed is enjoyable if you consider there's the basic interpreter under the hood. When the character moves left it doesnt check collisions, when the character moves right it does. Look at the difference :D The collision c...
par Garland
11 juin 2019 13:55
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

Because i wanted to see if POINT(X,Y) was doing something more in comparison to this code and it seems not. My purpose was to improve speed for some tasks which are particularly slow in basic, like drawing, getting input and checking collisions. Sometimes, instead pure ASM, you want to prefer the co...
par Garland
11 juin 2019 02:50
Forum : Développements actuels
Sujet : Get Pixel Color on MO6
Réponses : 18
Vues : 447

Re: Get Pixel Color on MO6

So it seems to work if i use this code: ORG $4320 * Location: $4320 * Get color PSHS X ; backup X reg onto stack LDX $2B01 ; to be modified in basic ($4323,24) LDY $2B08 ; to be modified in basic ($4327,28) CALL $14 ; result in B SEX ; sign-extend B into A:B=D PULS X ; restore X reg from stack STD 2...