Allow loading images > 16M

This commit is contained in:
Erik van der Kouwe 2010-04-29 15:14:07 +00:00
parent 4e837dcfb3
commit 3bf54e9b2b

View File

@ -301,10 +301,12 @@ smallcopy:
ext_copy:
mov x_dst_desc+2, ax
movb x_dst_desc+4, dl ! Set base of destination segment
movb x_dst_desc+7, dh
mov ax, 8(bp)
mov dx, 10(bp)
mov x_src_desc+2, ax
movb x_src_desc+4, dl ! Set base of source segment
movb x_src_desc+7, dh
mov si, #x_gdt ! es:si = global descriptor table
shr cx, #1 ! Words to move
movb ah, #0x87 ! Code for extended memory move