UFPrintChar JMP FCPrintChar ; Unmanaged jump MFPrintChar JSR FunctionManager .BYT %00000001 ; CPU Registers are used .BYT 3 ; Three bytes passed in if by-value FCPrintChar LDY #$00 LDA MFParamList STA ( MFParamList + 1 ),Y RTS
... LDX #$04 JSR MFPrintChar .BYT %01000001 .WOR PE_AddrXB_ValW .WOR CharTable, $0400 ...
CharTable .BYT 4,3,2,1,0
PE_AddrXB_ValW .BYT 2,4, PEAddrXB, PEValW
personally i'd use BRK with some parameters instead of a jsr to call what you call function manager (saves a byte here and there at relatively low cost).