@@ -25,7 +25,7 @@ class EmulatorViewModel: ObservableObject {
2525 @Published var errorMessage : String ?
2626 @Published var isConnected = false
2727
28- // Callback for scrolling editor to current PC
28+ /// Callback for scrolling editor to current PC
2929 var scrollToCurrentPC : ( ( ) -> Void ) ?
3030
3131 // Memory state
@@ -34,16 +34,16 @@ class EmulatorViewModel: ObservableObject {
3434 @Published var lastMemoryWrite : UInt32 ?
3535 @Published var lastMemoryWriteSize : UInt32 = 4 // Size in bytes (1, 2, or 4)
3636
37- // Disassembly state
37+ /// Disassembly state
3838 @Published var disassembly : [ DisassemblyInstruction ] = [ ]
3939
40- // Source map: address -> source line (for display)
40+ /// Source map: address -> source line (for display)
4141 @Published var sourceMap : [ UInt32 : String ] = [ : ]
42- // Valid breakpoint lines (1-based line numbers that can have breakpoints)
42+ /// Valid breakpoint lines (1-based line numbers that can have breakpoints)
4343 @Published var validBreakpointLines : Set < Int > = [ ]
44- // Line number to address mapping for breakpoint setting
44+ /// Line number to address mapping for breakpoint setting
4545 @Published var lineToAddress : [ Int : UInt32 ] = [ : ]
46- // Address to line number mapping for breakpoint display
46+ /// Address to line number mapping for breakpoint display
4747 @Published var addressToLine : [ UInt32 : Int ] = [ : ]
4848
4949 let apiClient : any APIClientProtocol
@@ -52,12 +52,12 @@ class EmulatorViewModel: ObservableObject {
5252 private var cancellables = Set < AnyCancellable > ( )
5353 private var isInitializing = false
5454
55- // Computed property: determines if pause button should be enabled
55+ /// Computed property: determines if pause button should be enabled
5656 var canPause : Bool {
5757 status == . running || status == . waitingForInput
5858 }
5959
60- // Computed property: determines if step buttons should be enabled
60+ /// Computed property: determines if step buttons should be enabled
6161 var canStep : Bool {
6262 status == . idle || status == . breakpoint
6363 }
0 commit comments