Fix broken intr_load, use LDS instruction
This commit is contained in:
		
							parent
							
								
									de90b9cfd1
								
							
						
					
					
						commit
						dcbb719488
					
				
					 1 changed files with 3 additions and 8 deletions
				
			
		|  | @ -44,17 +44,12 @@ intr_load: | |||
|   mul ah | ||||
|   mov si, ax | ||||
| 
 | ||||
|   ; ES = 0 | ||||
|   ; DS = 0 | ||||
|   xor ax, ax | ||||
|   mov ds, ax | ||||
| 
 | ||||
|   ; load offset | ||||
|   lodsw | ||||
|   mov si, ax | ||||
| 
 | ||||
|   ; load segment | ||||
|   lodsw | ||||
|   mov ds, ax | ||||
|   ; load segment and offset in one go | ||||
|   lds si, [si] | ||||
| 
 | ||||
|   pop ax | ||||
|   ret | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue