File: lbafdsim.asm

package info (click to toggle)
extipl 4.22-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 228 kB
  • ctags: 221
  • sloc: ansic: 924; asm: 470; makefile: 147; sh: 68
file content (51 lines) | stat: -rw-r--r-- 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;;	lbafdsim.asm:
;;
;;	*******************************************
;;	  LBA and CHS  translation mode supported.
;;	  Can not change bootable partition.
;;	*******************************************
;;					Auther : takamiti@tsden.org
;;					last update : 1999/04/05
;;
;;	This program requires NASM - "The Netwide Assembler"
;;	You can get the NASM from http://www.web-sites.co.uk/nasm/
;;

%include	"../src/_extipl.equ"

		bits	16
		org	0x0600		;; BOOT_LOC

		section .text

;=======================================================
;		LBA/CHS supported extendedIPL
;=======================================================
base:		cli
		xor	ax,ax
		mov	ss,ax
		mov	es,ax
		mov	ds,ax
		mov	bp,ax
		xchg	ax,dx
		mov	sp,BIOS_LOC
		mov	si,sp
		sti
		cld
		mov	di,BOOT_LOC
		mov	cx,256
		repnz	movsw
		push	word launcher
		ret


%include	"lba_main.asm"

; ipl launcher
launcher:	push	word start
		xor	dx,dx
		push	dx
		jmp	rdsector00

;;
;;	end of lbafdsim.asm