1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-23 23:32:45 +00:00

Add missing docblock comments

This commit is contained in:
Peter Evans 2018-03-07 16:28:11 -06:00
parent 9f09be93a9
commit 9cbfcac783
2 changed files with 19 additions and 0 deletions

View File

@ -225,12 +225,20 @@ static char alternate_display[] = {
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', ' ', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', ' ',
}; };
/*
* Return the primary character set representation matching the given
* character code.
*/
char char
apple2_text_primary(char ch) apple2_text_primary(char ch)
{ {
return primary_display[ch]; return primary_display[ch];
} }
/*
* Return the alternate character set representation matching the given
* character code.
*/
char char
apple2_text_alternate(char ch) apple2_text_alternate(char ch)
{ {

View File

@ -422,6 +422,10 @@ DEBUG_CMD(step)
vm_debug_break(cpu->PC); vm_debug_break(cpu->PC);
} }
/*
* Toggle disassembly, and print a notice of the change and its new
* status.
*/
DEBUG_CMD(disasm) DEBUG_CMD(disasm)
{ {
apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE); apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE);
@ -432,6 +436,13 @@ DEBUG_CMD(disasm)
fprintf(stream, "disassembly %s\n", mach->disasm ? "ON" : "OFF"); fprintf(stream, "disassembly %s\n", mach->disasm ? "ON" : "OFF");
} }
/*
* Disassemble a block of memory from one given address to another.
* Useful when you want to see what memory looks like in a given region.
* Note that the disassembler is a bit dumb, and can't tell what data
* are opcodes is meant to be standalone binary data (the sort you would
* get if you used "DFB" notation in an assembler).
*/
DEBUG_CMD(dblock) DEBUG_CMD(dblock)
{ {
if (args->addr1 > args->addr2) { if (args->addr1 > args->addr2) {