MSX 2+ Graphics Modes

Pagina 2/2
1 |

Van flyguille

Prophet (3028)

afbeelding van flyguille

27-09-2004, 02:56

ohh, true , IM 2 is not on the msx standard, so if it works fine will depends on the real hardware that you use...

Van sjoerd

Hero (602)

afbeelding van sjoerd

27-09-2004, 13:18

Dude, that looks more like C++ than it does assembly!It looks like a TASM assembler source to me.

Van NYYRIKKI

Enlighted (5918)

afbeelding van NYYRIKKI

28-09-2004, 01:54

ohh, true , IM 2 is not on the msx standard, so if it works fine will depends on the real hardware that you use...

You managed to get me going Wink Check this out:

http://www.msx.org/forumtopicl3816.html

Van sigma

Supporter (10)

afbeelding van sigma

28-09-2004, 22:41

First of all, I doubt you (or anyone else for that matter) have ever been told to fuck off on these forums just because you didn't write a piece of code first. And if you have been talked to like that on these forums, rest assured it wasn't me...
Huh? Wha? WTF?

If you are going to post code however, make sure you don't post a piece of code only you yourself can read. Be sure to either comment your code, or make code that is simple and clear enough to be understood without comments. You can not however, expect someone to spend half an hour trying to figure out what it does or is supposed to do. I spent at least 5 minutes reading your code, and simply couldn't figure out what it was supposed to do.
And you didn't bring this up at the outset -- and God forbid I might have actually listened and tried to make it more legible to suit your tastes -- because...?

www.geocities.com/sigma_zk/Z80/ztest.zip


Calling to do an OUT is not only going to slow your code down, it also greatly decreases the legibility.

Good thing I don't do that then.

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

29-09-2004, 00:23

I haven't read your sourcecode (sorry), but have you tried producing color in BASIC first?
SCREEN 11 or SCREEN 12 would be the perfect candidate for this.

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

29-09-2004, 02:14

First of all, I doubt you (or anyone else for that matter) have ever been told to fuck off on these forums just because you didn't write a piece of code first. And if you have been talked to like that on these forums, rest assured it wasn't me...
Huh? Wha? WTF?

Well, I quote: How amusing. I see dozens of newbies spam their homework assigments to programming-help message boards, and get hit with replies to the effect of "F.O. and when you've written something, come back and we'll be more than happy to help".

And you didn't bring this up at the outset -- and God forbid I might have actually listened and tried to make it more legible to suit your tastes -- because...?I told you your code looks more like C++ than assembly! How much more clear can I get... Ofcourse you brushed me off when I told you to produce more clear and linear code. Heck, I bet you still haven't read Alex Wulms' documentation on the 2+ modes either...

Calling to do an OUT is not only going to slow your code down, it also greatly decreases the legibility.
Good thing I don't do that then.
Yeah... Indeed... I must have imagined seeing:

	ld	hl, $FFFA	; R-25 backup
	res	4, (hl)
	set	3, (hl)
	ld	a, (hl)
	ld	c, 25
	call	Set_VDP_Reg
Set_VDP_Reg:	.module	SET_VDP_REG
	out	(vdp_port_1), a
	ld	a, c
	or	$80
	out	(vdp_port_1), a
	ret

Have you ever considered something like:

        LD    A,($FFFA)
        OR    %00001000
        OUT   ($99),A
        LD    A,$80+25
        OUT   ($99),A

But anyhoo, you really don't seem to care what I think and seem to be pretty bent on not listening to anyone here, so whatever. You seem to know it all, so surely you'll figure this out too, I have no doubt you will. Just don't ask for help if you don't want any help...

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

29-09-2004, 19:52

I told you your code looks more like C++ than assembly! How much more clear can I get...
Dude, there's nothing wrong with his code.. It looks like normal assembly to me!

Calling a Set_VDP_Reg routine is nothing strange either. It's quite normal, although most people prefer a macro.
Write_PSG_Reg or Write_FM_Reg are usually subroutines too, you know...

Have you ever considered something like:
If he would consider that, he would be crazy, because that code is NOT functionally identical to his at all! (It doesn't do RES 4 and doesn't update the backup)

In stead of bitching about his coding style, you might want to be a bit more friendly and helpful...

Pagina 2/2
1 |