File:  [RetroPC.NET] / np2 / romimage / STARTUP.ASM
Revision 1.1: download - view: text, annotated - select for diffs
Wed Dec 10 22:15:18 2003 JST (21 years, 10 months ago) by yui
Branches: MAIN
CVS tags: HEAD
add STARTUP/HDDBOOT images (T.Yui)

.186

CODE	SEGMENT
		ASSUME CS:CODE,DS:nothing,ES:nothing,SS:nothing
		ORG 0000H

FIXCS		equ		2eh

START:			jmp		short nosystems
START2:			mov		si, offset nobiosmsg
				jmp		short	dispend

nosystems:		mov		si, offset nosysmsg

dispend:		mov		ax, 1000h
				mov		bx, 8000h
				mov		ss, ax
				mov		sp, bx

				mov		ax, cs
				mov		ds, ax
				mov		ax, 0a000h
				mov		es, ax

				mov		cx, 1000h
				mov		ax, 0020h
				xor		di, di
				cld
				rep stosw
				mov		al, 0e1h
				mov		cx, 1fe0h
atrclr:			stosb
				inc		di
				loop	atrclr

				db		FIXCS
				lodsw
				mov		di, ax
putmsg:			db		FIXCS
				lodsw
				test	ax, ax
				je		short putmsgend
				stosw
				or		ah, ah
				je		short putmsg
				add		di, 2
				jmp		short putmsg
putmsgend:		jmp		short putmsgend


				; システムディスクをセットしてください
nosysmsg	dw	12*160+44
			dw	3705h,3905h,4605h,6005h,4705h,2305h,3905h,2f05h
			dw	7204h,3b05h,4305h,4805h,3704h,4604h,2f04h,4004h
			dw	3504h,2404h,0

				; BASICの起動には BIOS.ROMが必要です
nobiosmsg	dw	12*160+46
			dw	0042h,0041h,0053h,0049h,0043h,4e04h,2f15h,3026h
			dw	4b04h,4f04h,0020h,0042h,0049h,004fh,0053h,002eh
			dw	0052h,004fh,004dh,2c04h,2c29h,572dh,4704h,3904h,0

CODE	ENDS
	END START


RetroPC.NET-CVS <cvs@retropc.net>