I don't understand ENASLT sample in the wiki

Par jseb

Rookie (28)

Portrait de jseb

08-08-2019, 11:40

Hello,

At the end of the https://www.msx.org/wiki/Slots page, there is a sample of ENASLT call.

; Select the slot 2-1 for page 1 (4000h-07FFFh) using BIOS routine
ENASLT	equ	0024h
	ld	h,040h
	ld	a,08Fh	;Slot ID
	call	ENASLT

So ok for h register: as it's bit 6 and 7 which are used, 0x40 gives 01000000b, so page 1.
But for slot ID value, i don't understand:

Slot ID is coded this way: F000EEPP
if F is set, then EE (subslot) is used.
0x8F gives :
10001111
F000EEPP

So i understand : primary = 3 , and extended = 3.
But the sample says : Select the slot 2-1
Shouldn't the value of A register be: 10000110 (0x86) ?

Thank you.

!login ou Inscrivez-vous pour poster

Par Grauw

Ascended (8738)

Portrait de Grauw

08-08-2019, 12:31

Yes, you are correct and the sample is incorrect. Feel free to change it to 86h.

Par jseb

Rookie (28)

Portrait de jseb

08-08-2019, 13:42

Thank you for your answer.

That would be a pleasure to modify the wiki, but i cannot: when i arrive on the wiki page, i'm not logged anymore. If i log again, i get this error : access denied, You are not authorized to access this page.
It must for avoiding vandalism of wiki by newcomers. If someone can fix this, thank you Smile

Par gdx

Prophet (3318)

Portrait de gdx

08-08-2019, 14:02

MRC has several trouble with log in. For exemple, we must log out two time (from the wiki) when we go to edit the wiki. The log in is lost when passing the URL msx.org to www.org or vice versa.

Par Grauw

Ascended (8738)

Portrait de Grauw

08-08-2019, 15:03

Yeah buggy. Clear the site cookies and log in again, then you’ll be able to edit the wiki.

Anyway seems gdx already corrected it!

Par jseb

Rookie (28)

Portrait de jseb

08-08-2019, 15:18

Ok it works now, next time i can edit Smile