run68ȈՃfobK̎g run68 version0.7
Dec.1999 by Chack'n

1.͂߂

 run68ȈՃfobḰArun68g̃fobOړIƂčꂽ@\łB
 ̓Iɂ́Arun68œ삵ȂvOȂ삵Ȃ̂˂~߁A
 run68ɎĂȂA邢͌Ďꂽ߂t@NV
 R[fobÔɎg܂Brun68œǂȂ
 \tg茳ɂ́̕A񂨎B̏ŉ͌ʂ
 ǂɂ肢ƁAł邾₩ɏC܂B
 ŏCĂĂ񌋍\łȀꍇł邾A
 ǂɏCӏƓetB[hobNƎv܂B
 run68.txt́u9. ͂̂肢vQƂĂB

2.N

 run68-debugIvVtċNƁArun68ȈՃfobKN܂B

  C>run68 -debug <vO>
  fobKN܂B
  D0-D7=00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
  A0-A7=00033C00,0003F644,00023C00,00021C00,00033D00,00000000,00000000,00033C00
    PC=00033D00    SR=0000
  $033D00 4BFA 3C82                 lea.l   15490(pc),a5
  (run68)

 ܂AAvP[VvOAhXG[oXG[ɂȂ
 ɂIɋN܂B

3.wvR}h

 run68ȈՃfobK̃R}hꗗ\܂B̈ꗗ́AhelpR}h
 ŕ\܂B

       ============= run68 debugger commands =============
break $adr      - Set a breakpoint.
clear           - Clear the breakpoint.
cont            - Continue running.
cont n          - Continue running and stops after executing n instructions.
dump $adr [n]   - Dump memory (n bytes) from $adr.
dump [n]        - Dump memory (n bytes) continuously.
help            - Show this menu.
history [n]     - Show last n instructions executed.
list $adr [n]   - Disassemble from $adr.
list [n]        - Disassemble n instructions from current PC.
quit            - Quit from run68.
reg             - Display registers.
run             - Run Human68k program from the begining.
step            - Execute only one instruction.
step n          - Continue running with showing all registers
                  and stops after executing n instructions.

4.breakR}hclearR}h

 run68ȈՃfobḰAɈu[N|Cgݒł܂B
 V{͎gȂ̂ŁA$Ŏn܂AhXw肵܂B

(run68)break $33d40
(run68)cont
(run68) breakpoint:MPUAhX$033D40̖߂s܂B
D0-D7=00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
A0-A7=00033C10,0000BA34,00023C00,00021C00,00000000,00037984,00000000,0003F57C
  PC=00033D40    SR=2004
$033D40 FF20                      FCALL $20
(run68)

 ݒ肵u[N|CgclearR}hŖ܂B

(run68)clear
(run68)break
run68-break:No breakpoints set.

 PbreakƑłƁAݒ蒆̃u[N|CgAhX\܂B

(run68)break
run68-break:Breakpoint is set to $033D40.

5.cont/step/run/quitR}h

 runR}h́AvOɃ[hĂ̐擪PC
 ړ܂A_ł͑contȂƃvO̎s
 Jn܂B܂ArunR}hŃAvP[ṼR}h
 CύX@\܂Brun68quitȂŉx
 fobOsJԂɎg܂B

(run68)run
fobKN܂B
D0-D7=00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
A0-A7=00033C00,0003F644,00023C00,00021C00,00033D00,00037984,00000000,00033C00
  PC=00033D00    SR=0004
$033D00 4BFA 3C82                 lea.l   15490(pc),a5
(run68)

 contCPUAsR}hłBɐlw肷ƁA
 nߎsƂCPUXgbv邱Ƃł܂B
 stepCPU߂1߂săXgbv܂Bɐl
 tƁAstepsnߕJԂ܂BcontR}h
 stepR}h܂g킹āAvO̓삪Ȃ
 ӏǂ߂Ă܂B

(run68)step
D0-D7=00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
A0-A7=00033C10,0000BA34,00023C00,00021C00,00000000,00037984,00000000,0003F57C
  PC=00033D44    SR=0004
$033D44 2F0B                      move.l  a3,-(a7)
(run68)

 run68I鎞ɂquitR}hg܂B

6.dumpR}h

 dumpR}hX68000̉zԂ_v܂B
 AhXƃoCgw肵ĂBoCg͏ȗ\łB
 ŏɃ_vJnAhXw肷ƁA2ڂŃAhXw
 ȗłAƑO_v̎̃AhX
 _vJn܂B

(run68)dump $3f57c 128
03F57C:00 03 F5 7C 00 00 00 00-00 00 00 00 00 00 00 00:...|............
03F58C:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F59C:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F5AC:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F5BC:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F5CC:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F5DC:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................
03F5EC:00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00:................

7.listR}hhistoryR}h

 listR}hhistoryR}h́AꂼtAZuƖߎs
 \܂B߂̃fR[h́A߂̎sƂ͑Sʂ̃R[h
 NĂ܂Bǂ炩ɃoOƁAfBXAZu
 eƎseɈႢĂ܂܂B
 listR}h̓AhXw肵ȂƁÃ݂vOJE^
 ̈ʒufBXAZuJn܂B܂AfBXAZu
 閽ߐw肷邱Ƃł܂BAhXȗlistR}h
 AĎsƁAAAhXfBXAZu܂B

(run68)list
$033D00 4BFA 3C82                 lea.l   15490(pc),a5
$033D04 4FED 7C00                 lea.l   31744(a5),a7
$033D08 2F28 0060                 move.l  96(a0),-(a7)
$033D0C 2848                      movea.l a0,a4
$033D0E 41E8 0010                 lea.l   16(a0),a0
$033D12 93C8                      suba.l  a0,a1
$033D14 2F09                      move.l  a1,-(a7)
$033D16 2F08                      move.l  a0,-(a7)
$033D18 FF4A                      FCALL $4A
$033D1A 508F                      addq.l  #8,a7

 historyR}h́Aŋߎsꂽ߂\܂Brun68͎s
 ߂̃AhXLĂ܂Bő2000߂܂ŕ\ł
 ܂B߃R[hď㏑ꂽ肷ƁAfBXAZu
 ͎ۂɎsR[hƂ͈Ⴄ̂\̂ŋCtĂB

(run68)history
** EXECUTED INSTRUCTION HISTORY **
ADDRESS OPCODE                    MNEMONIC
-------------------------------------------------------
$033D20 2E80                      move.l  d0,(a7)
$033D22 2854                      movea.l (a4),a4
$033D24 200C                      move.l  a4,d0
$033D26 6718                      beq.b   $033D40
$033D28 0CAC 6461 7368 0010       cmp.l   #$64617368,16(a4)
$033D30 66F0                      bne.b   $033D22
$033D22 2854                      movea.l (a4),a4
$033D24 200C                      move.l  a4,d0
$033D26 6718                      beq.b   $033D40
$033D40 FF20                      FCALL $20

8.regR}h

 regR}hMC68000̑SẴWX^̓e\܂B݂
 AWX^̓e@\͗LĂ܂B

(run68)reg
D0-D7=00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
A0-A7=00033C10,0000BA34,00023C00,00021C00,00000000,00037984,00000000,0003F57C
  PC=00033D42    SR=0004

(EOF)
