summaryrefslogtreecommitdiff
path: root/bootblocks/bb_init1.s
blob: 8b85e54a87a2d7588650de70b59a77397b7f0e06 (plain)
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
ORGADDR=0x0600	  ! $0500..0600 stack or move ORGADDR down.

.org ORGADDR
entry start
public start
start:
  cld
  xor	ax,ax
  mov	si,#$7C00
  mov	di,#ORGADDR

  mov	ss,ax
  mov	sp,si	! ax, di or si

  push	ax
  pop	ds
  push	ax
  pop	es

  mov	cx,#256
  rep
   movsw
  jmpi	go,#0
go: