読者です 読者をやめる 読者になる 読者になる

by shigemk2

当面は技術的なことしか書かない

FreeDOSのエミュレータをごにょごにょする

$ hg clone https://bitbucket.org/7shi/8086run

freedos-2041_86f16.zipを落とす 7shi / 8086run / Downloads — Bitbucket

で、下のこまんどをつらつらと。

$ ./8086run freedos-2041_86f16.img
FreeDOS kernel 2041 (build 2041 OEM:0xfd) [compiled Feb  7 2012]...................123
Kernel compatibility 6.22 - WATCOMC

(C) Copyright 1995-2012 Pasquale J. Villani and The FreeDOS Project.
All Rights Reserved. This is free software and comes with ABSOLUTELY NO
WARRANTY; you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation;
either version 2, or (at your option) any later version.
 - InitDiskno hard disks detected
MEMDISK version 17.183  (131288 sectors)

FreeCom version 0.82 pl 3 [Dec 10 2003 06:54:37]

A:\>debug
-a
2756:0100 mov ax,1234
2756:0103
-u
2756:0100 B83412        MOV     AX,1234
2756:0103 0000          ADD     [BX+SI],AL
2756:0105 0000          ADD     [BX+SI],AL
2756:0107 0000          ADD     [BX+SI],AL
2756:0109 0000          ADD     [BX+SI],AL
2756:010B 0000          ADD     [BX+SI],AL
2756:010D 0000          ADD     [BX+SI],AL
2756:010F 0000          ADD     [BX+SI],AL
2756:0111 0000          ADD     [BX+SI],AL
2756:0113 0000          ADD     [BX+SI],AL
2756:0115 0000          ADD     [BX+SI],AL
2756:0117 0000          ADD     [BX+SI],AL
2756:0119 0000          ADD     [BX+SI],AL
2756:011B 0000          ADD     [BX+SI],AL
2756:011D 0000          ADD     [BX+SI],AL
2756:011F 0000          ADD     [BX+SI],AL
-t=100
org 0x2756:0x04de
db 0x0e, 0x6d, 0x00, 0x39, 0xc8, 0x75, 0xe5, 0x07


A:\>debug
-a
2756:0100 mov 1234, ax
                      ^ Error
2756:0100 mov 1234, (ax)
                    ^ Error
2756:0100 mov [1234], ax
2756:0103
-g=100,103
AX=0000  BX=0000  CX=0000  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000
DS=2756  ES=2756  SS=2756  CS=2756  IP=0103   NV UP DI PL NZ NA PO NC
2756:0103 0000          ADD     [BX+SI],AL                           DS:0000=CD
-r
AX=0000  BX=0000  CX=0000  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000
DS=2756  ES=2756  SS=2756  CS=2756  IP=0103   NV UP DI PL NZ NA PO NC
2756:0103 0000          ADD     [BX+SI],AL                           DS:0000=CD
-r
AX=0000  BX=0000  CX=0000  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000
DS=2756  ES=2756  SS=2756  CS=2756  IP=0103   NV UP DI PL NZ NA PO NC
2756:0103 0000          ADD     [BX+SI],AL                           DS:0000=CD
-u100
2756:0100 A33412        MOV     [1234],AX
2756:0103 0000          ADD     [BX+SI],AL
2756:0105 0000          ADD     [BX+SI],AL
2756:0107 0000          ADD     [BX+SI],AL
2756:0109 0000          ADD     [BX+SI],AL
2756:010B 0000          ADD     [BX+SI],AL
2756:010D 0000          ADD     [BX+SI],AL
2756:010F 0000          ADD     [BX+SI],AL
2756:0111 0000          ADD     [BX+SI],AL
2756:0113 0000          ADD     [BX+SI],AL
2756:0115 0000          ADD     [BX+SI],AL
2756:0117 0000          ADD     [BX+SI],AL
2756:0119 0000          ADD     [BX+SI],AL
2756:011B 0000          ADD     [BX+SI],AL
2756:011D 0000          ADD     [BX+SI],AL
2756:011F 0000          ADD     [BX+SI],AL
-d1234
2756:1230              00 00 00 00-00 00 00 00 00 00 00 00       ............
2756:1240  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1250  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1260  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1270  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:12A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:12B0  00 00 00 00            -                          ....
-r
AX=0000  BX=0000  CX=0000  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000
DS=2756  ES=2756  SS=2756  CS=2756  IP=0103   NV UP DI PL NZ NA PO NC
2756:0103 0000          ADD     [BX+SI],AL                           DS:0000=CD
-rax
AX 0000  :5678
-g=100,103
AX=5678  BX=0000  CX=0000  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000
DS=2756  ES=2756  SS=2756  CS=2756  IP=0103   NV UP DI PL NZ NA PO NC
2756:0103 0000          ADD     [BX+SI],AL                           DS:0000=CD
-d1234
2756:1230              78 56 00 00-00 00 00 00 00 00 00 00       xV..........
2756:1240  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1250  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1260  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1270  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:1290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:12A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
2756:12B0  00 00 00 00            -                          ....
-