Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vgsdrun: ステップ実行に対応 #11

Merged
merged 1 commit into from
Jul 25, 2016
Merged

vgsdrun: ステップ実行に対応 #11

merged 1 commit into from
Jul 25, 2016

Conversation

suzukiplan
Copy link
Owner

実行経過のレジスタ情報を見たかったので vgsdrun にステップ実行機能を追加。
後で、特定アドレスに到達するまで実行する機能とかを入れようかと思っている。

$ ./vgsdrun src/test/asm_mul.asm  -s
assembling: src/test/asm_mul.asm on memory
starting debug run.
00000000: ----- start-a -----
00000000: 08 E8 03               : line#00006 > LD   A, 1000
00000003: 6F 64                  : line#00007 > MUL  A, 100
00000005: A7 A0 86 01 00         : line#00008 > CMP  A, 100000
0000000a: F8 08 03 00 00         : line#00009 > JNE  $308 (test-failed)
> h
command usage:
- h     ... help
- r     ... show registers
- q     ... quit
- other ... execute next line
> r
registers:
c->r.a = 000186A0, c->r.b = 00000000, c->r.c = 00000000, c->r.d = 00000000
c->r.p = 0000000A, c->r.s = 00000000, c->f.z = 00000000, c->f.q = 00000000
> q
$

} else if (0 == strncmp(buf, "q", 1)) {
exit(0);
} else {
printf("\033[1A");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1行前に戻る(ステップ実行した時の > を消すため)

@suzukiplan suzukiplan merged commit d7ee604 into master Jul 25, 2016
@suzukiplan suzukiplan deleted the step-exec branch July 25, 2016 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant