On Tue, 10 Aug 1999 17:58:31 +0200, Maarten ter Huurne wrote:
>At 06:50 PM 8/9/99 -0300, you wrote:
>I called your routine from BASIC.
>The only thing that I see wrong is that the sprite consists of vertical
>lines rather than a box. This is simple to fix: in the sprite color table,
>use #05 instead of #01 (#05=%0101). The reason is that SCREEN6 allows
>different colors for even and odd pixels of a sprite. If you want a
>monocolored sprite, you should specify the same color for both even and odd
>pixels.
Thanks for the info... This was not specified on MSX2TH.
>But I got the impression that the error you have is not seeing the sprites
>at all, instead of seeing vertical lines.
>Since I called your routine from BASIC and you run it from DOS, that is
>probably where the problem is. Please send your CALLBIOS and CALLSUB
>routines to the list, the problem is probably in there.
They're here:
EXBRSA EQU 0FAF8h
EXPTBL EQU 0FCC1h
CALSLT EQU 0001Ch
;-----
; Call BIOS Function
; In: IX - BIOS function address
;-----
CALLBIOS:
LD IY,(EXPTBL-1) ; Slot da MainRom
CALL CALSLT ; Chama rotina
RET ; Volta...
;-----
; Call SubRom function
; In: IX - SubRom function address
;-----
CALLSUB:
LD IY,(EXBRSA-1) ; Slot da SubRom
CALL CALSLT ; Chama rotina
RET ; Volta...
The strange is that on BrMSX I can see that the program really put the
data on the RIGHT places, but even with this the Sprite was NOT drawn.
>If you (or anyone else) send sources to the list, please send the whole
>source or at least something that compiles.
Sorry. The code is really BIG and I was without time to create a little
program using the routine.
> It was a lot of work to look up
>all the labels you used.
Sorry again. I write the labels now.
>CLRSPR is a very tricky label. There is a routine by that name in both the
>BIOS and the SUBROM, but at different addresses. That's why I always use
>prefixes: BIOS_CLRSPR and SUBR_CLRSPR take care of the ambiguity.
Sorry again. The reason for this is that once I'm doing a MSX2(or better) program,
I always use SUBROM function when it is available. So, there is no problems of
ambiguity. I forgot to tell that... (-:
[]'s Daniel Caetano ([EMAIL PROTECTED])
Fudeba? Yes, I'm fudeba. And you're fudeba too. So, what's the problem?
OS/2 Sites: http://www.os2brasil.com.br/novidades/
http://www.os2brasil.com.br/novidades/drivers.shtml
http://www.geocities.com/SiliconValley/8752/os2hp/index.html
MSX Sites: http://www.fudeba.cjb.net/ e http://www.msxnews.cjb.net/
MSX Phoenix: http://www.msxphoenix.cjb.net/
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****