mirror of
https://github.com/pevans/erc-c.git
synced 2025-03-12 05:32:25 +00:00
Add missing docblock comments
This commit is contained in:
parent
aee0521b0a
commit
9f60e61cfb
@ -7,6 +7,10 @@
|
|||||||
#include "mos6502.h"
|
#include "mos6502.h"
|
||||||
#include "vm_di.h"
|
#include "vm_di.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the reflection struct for the apple2 machine, setting up
|
||||||
|
* all of the reflect methods we may want to use.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
apple2_reflect_init()
|
apple2_reflect_init()
|
||||||
{
|
{
|
||||||
@ -18,6 +22,9 @@ apple2_reflect_init()
|
|||||||
ref->disasm = apple2_reflect_disasm;
|
ref->disasm = apple2_reflect_disasm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Show some information about the CPU registers.
|
||||||
|
*/
|
||||||
REFLECT(apple2_reflect_cpu_info)
|
REFLECT(apple2_reflect_cpu_info)
|
||||||
{
|
{
|
||||||
mos6502 *cpu = (mos6502 *)vm_di_get(VM_CPU);
|
mos6502 *cpu = (mos6502 *)vm_di_get(VM_CPU);
|
||||||
@ -28,6 +35,11 @@ REFLECT(apple2_reflect_cpu_info)
|
|||||||
cpu->A, cpu->X, cpu->Y, cpu->P, cpu->S, cpu->PC);
|
cpu->A, cpu->X, cpu->Y, cpu->P, cpu->S, cpu->PC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Show information about the apple2 machine--mostly some of the
|
||||||
|
* metadata variables, like what the bank switch status is, or what
|
||||||
|
* memory mode we're in.
|
||||||
|
*/
|
||||||
REFLECT(apple2_reflect_machine_info)
|
REFLECT(apple2_reflect_machine_info)
|
||||||
{
|
{
|
||||||
apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE);
|
apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE);
|
||||||
@ -51,6 +63,10 @@ REFLECT(apple2_reflect_pause)
|
|||||||
mach->paused = !mach->paused;
|
mach->paused = !mach->paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable or disable disassembly output, toggling from one state to the
|
||||||
|
* other for each invocation.
|
||||||
|
*/
|
||||||
REFLECT(apple2_reflect_disasm)
|
REFLECT(apple2_reflect_disasm)
|
||||||
{
|
{
|
||||||
apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE);
|
apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user