SCREEN2 not correctly displaying the 3 banks

Door Metalion

Paragon (1343)

afbeelding van Metalion

09-02-2021, 10:30

Hello,

This one got me stumped ... I'm doing a small thing in SCREEN2 on an MSX1.
Nothing fancy, just using the BIOS, with this code:

	call	BIOS.inigrp
	
	ld	hl,pat2
	ld	de,VRAM.patterns
	ld	bc,6144
	call	BIOS.ldirvm
	
	ld	hl,col2
	ld	de,VRAM.colors
	ld	bc,6144
	call	BIOS.ldirvm
	
	ld	hl,test_0
	ld	de,VRAM.screen
	ld	bc,768
	call	BIOS.ldirvm

	ret

Result : only the first bank is displayed on screen !?

I checked the registers, they are correct (which is normal since I used INIGRP):
R#2 = 06h
R#3 = FFh
R#4 = 03h
R#5 = 36h
R#6 = 07h

I checked the VRAM, the content is correct:
patterns are at 0000h
colors are at 2000h
name are at 1800h
sprites are at 3800h
attributes are at 1B00h

What am I missing here ???

Aangemeld of registreer om reacties te plaatsen

Van Metalion

Paragon (1343)

afbeelding van Metalion

09-02-2021, 10:41

OK, I must be really tired ... checked again, and sure enough, only the first bank patterns were loaded.
Sorry guys.

Running Naked in a Field of Flowers