short cut to ... [main] [news] [forum] [download] [Hall of Fame] [game] [cg] [link]

TOS.SYS󶡤뵡ǽ

onDOSTOWNS-OSTOS.SYSTOWNS-OSIO.SYS󶡤뵡ǽ⡢
MS-DOS6.2IO.SYSǤ󶡤ʤǽԤǥХǤ


int 0xaf ah=0x08-09 ®⡼
int 0x8e ah=0x20-23 ĥ
int 0x8e ax=0xc701  TOS.SYSե󥯥


®⡼ɤ
	[]	ah=0x08
		al=0x00(ߴ⡼),0x01(®⡼),0x02(CMOS)
	[ƽ]	int 0xaf
	[]	ah=顼
			0x00(ェλ)
			0x02(ѥ᡼۾)
			0x80(®⡼̤б)
		al=0x00(ߴ⡼),0x01(®⡼),Ѳʤ(顼)
	[]	顼꡼å
		ճʤȤCMOSؤν񤭹ߵǽϤޤ

®⡼ɤμ
	[]	ah=0x09
	[ƽ]	int 0xaf
	[]	ah=顼
			0x00(ェλ)
			0x80(®⡼̤б)
		al=0x00(ߴ⡼),0x01(®⡼),Ѳʤ(顼)
	[]	顼꡼å

ĥѲǽ䤤碌
	[]	ah=0x20
		edx=0x545f4f53("T_OS")
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
		cx/ecx=ѲǽʺΥ֥åΥ(KB)
	[]	edx̤16bit(cx)
		XMMXMMfunctionƤӽФޤ

ĥ
	[]	ah=0x21
		edx=0x545f4f53("T_OS")
		cx/ecx=ݤ֥åΥ(KB)
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
			0x80(­)
			0x81(ΰ褬32blockĶ)
		dx:di=ݤ֥åʪɥ쥹
	[]	顼꡼å
		edx̤16bit(cx)
		XMMXMMfunctionƤӽФޤ

ĥ
	[]	ah=0x22
		dx:di=֥åʪɥ쥹
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
			0x82(ꤵ줿ɥ쥹ϴ)
	[]	顼꡼å
		XMMXMMfunctionƤӽФޤ

ĥꥳԡ
	[]	ah=0x23
		cx=(byte)
		bx:si=žʪɥ쥹
		dx:di=žʪɥ쥹
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
	[]	RAWĥꥳԡƤӽФޤ

TOS.SYSΥСμ
	[]	ax=0xc701 dl=0x00
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
		al=0x00
		dh=MajorVersion
		dl=MinorVersion
		bh=Level
		bl=0x00
	[]	V2.1L40(dx=0x0201 bx=0x2800)
		OSΥСǤϤʤTOS.SYSΥСǤ

(int8e_c701_01)
	[]	ax=0xc701 dl=0x01
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
	[]	⤷ʤ

10ms32bitʪɥ쥹
	[]	ax=0xc701 dl=0x02
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
		ebx=10ms32bitʪɥ쥹
	[]	ǥ޴BIOS(int 0x97)ѤƤޤ

(int8e_c701_03)
	[]	ax=0xc701 dl=0x03
	[ƽ]	int 0x8e
	[]	ah=顼
			0x00(ェλ)
		al=0xff
	[]	⤷ʤ

RAWĥꥳԡ
	[]	cx=(byte)
		bx:si=žʪɥ쥹
		dx:di=žʪɥ쥹
	[ƽ]	call 0x0040:0x0024
	[]	ʤ
	[˲]	EFLAGS
	[]	ĥӥBIOS(int 0x8e ah=0x23)ƤӽФޤ
		386sxǤǥɥ쥹ѴԤޤ
		ץƥȥ⡼ɰܹԻϥեåޤ

RAWĥꥳԡ
	[]	ʤ
	[ƽ]	call 0x0040:0x0028
	[]	ʤ
	[˲]	EFLAGS
	[]	TOS.SYSʳǸƤӽФ륿ߥ󥰤Ǥ
		ץƥȥ⡼ɰܹԻϥեå٤ʤΤ⤷ޤ
		ǤϰŪGDTΰνԤäƤޤ
		(GDTRϤλǤꤵޤ)