I don't understand ENASLT sample in the wiki

By jseb

Rookie (28)

jseb's picture

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 or register to post comments

By Grauw

Ascended (8507)

Grauw's picture

08-08-2019, 12:31

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

By jseb

Rookie (28)

jseb's picture

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

By gdx

Prophet (3075)

gdx's picture

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.

By Grauw

Ascended (8507)

Grauw's picture

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!

By jseb

Rookie (28)

jseb's picture

08-08-2019, 15:18

Ok it works now, next time i can edit Smile