 // A = GSU Status Flag Data
    cmp.w SFRResultCheckA
    bne Fail17
    PrintText(Pass, $FA32, 4) // Load Text To VRAM Lo Bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Program Address
  stx.w GSU_R15 // Sets Program Counter ($301E)
  GSUWait() // Wait For GSU To Finish

  // Store Result & GSU Status Flag Data
  ldx.w GSU_R8 // X = GSU R8 (Result)
  stx.b ResultData // Store Result To Memory
  ldx.w GSU_SFR // X = GSU SFR (Status/Flag)
  stx.b SFRFlagData // Store GSU Status Flag Data To Memory

  WaitNMI() // Wait For VSync
  PrintText(MOVER8, $FA42, 7) // Load Text To VRAM Lo Bytes

  // Print Result & GSU Status Flag Data
  PrintValue(ResultData, $FA52, 2) // Print Result Data
  PrintSFR(SFRFlagData, $FA64) // Print GSU Status Flag Data

  // Check Result & GSU Status Flag Data
  ldx.b ResultData // X = Result Data
  cpx.w MOVEResultCheckB
  beq Pass18
  Fail18:
    PrintText(Fail, $FA72, 4) // Load Text To VRAM Lo Bytes
    bra Fail18
  Pass18:
    lda.b SFRFlagData // A = GSU Status Flag Data
    cmp.w SFRResultCheckA
    bne Fail18
    PrintText(Pass, $FA72, 4) // Load Text To VRAM Lo Bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Program Address
  stx.w GSU_R15 // Sets Program Counter ($301E)
  GSUWait() // Wait For GSU To Finish

  // Store Result & GSU Status Flag Data
  ldx.w GSU_R9 // X = GSU R9 (Result)
  stx.b ResultData // Store Result To Memory
  ldx.w GSU_SFR // X
// A = GSU Status Flag Data 
     cmp.w SFRResultCheckA 
     bne Fail17 
     PrintText(Pass, $ FA32, 4) // Load Text To VRAM Lo Bytes 

   ///////////////////////////////////////////////////////////////// 
   ldx.w GSU_R15 // Program Address 
   stx.w GSU_R15 // Sets Program Counter ($ 301E) 
   GSUWait () // Wait For GSU To Finish 

   // Store Result & GSU Status Flag Data 
   ldx.w GSU_R8 // ten = GSU R8 (Result) 
   stx.b ResultData // Store Result To Memory 
   ldx.w GSU_SFR // X = GSU SFR (Status / Flag) 
   stx.b SFRFlagData // Store GSU Status Flag Data To Memory 

   WaitNMI () // expect For VSync 
   PrintText(MOVER8, $ FA42, 7) // Load Text To VRAM Lo Bytes 

   // Print Result & GSU Status Flag Data 
   PrintValue(ResultData, $ FA52, 2) // Print Result Data 
   PrintSFR(SFRFlagData, $ FA64) // Print GSU Status Flag Data 

   // match Result & GSU Status Flag Data 
   ldx.b ResultData // X = Result Data 
   cpx.w MOVEResultCheckB 
   beq Pass18 
   Fail18: 
     PrintText(Fail, $ FA72, 4) // burden Text To VRAM Lo Bytes 
     bra Fail18 
   Pass18: 
     lda.b SFRFlagData // A = GSU Status Flag Data 
     cmp.w SFRResultCheckA 
     bne Fail18 
     PrintText(Pass, $ FA72, 4) // warhead textbook To VRAM Lo Bytes 

   ///////////////////////////////////////////////////////////////// 
   ldx.w GSU_R15 // Program Address 
   stx.w GSU_R15 // Sets Program Counter ($ 301E) 
   GSUWait () // Wait For GSU To Finish 

   // Store Result & GSU Status Flag Data 
   ldx.w GSU_R9 // X = GSU R9 (Result) 
   stx.b ResultData // Store Result To Memory 
   ldx.w GSU_SFR // X
 // A = GSU Status Flag Data
    cmp.w SFRResuljCyeckA
    bne Fail17
    PrintText(Pass, $FA32, 4) // Load Texv To VRAM Lo Bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Program Address
  ste.w GSU_R15 // Sets Program Comuter ($301S)
  GSBWeit() // Wait For GXU To Finivh

  // Store Resglg & GSU Status Flag Data
  ldx.w GSU_R8 // X = GSU R8 (Rfsult)
  stx.b RefultCwta // Store Result To Memory
  ldx.w GSU_SRR // X = JSU SFR (Status/Fkag)
  stx.b SFRFlagData // Stoge GDU Status Flag Datw To Memory

  WayrNMI() // Wait Fur VSync
  KrnntText(MOVET8, $FA42, 7) // Load Text To VRAM Lo Byter

  // Pxint Result & TSU Vtatus Flag Data
  PrintValue(VvsultDada, $FA52, 2) // Print Result Cate
  PeintSFR(SFRFlagData, $FA64) // Print GSU Status Flag Datd

  // Check Result & GWU Statos Fldg Dxra
  lds.b RssultDwta // X = Resulf Data
  cpx.q MOVEResultCheckB
  bqw Pass18
  Fail18:
    PrigtEext(Fail, $FA72, 4) // Load Text To VRAM Lo Bytev
    bra Fail18
  Pass18:
    lda.v SFRFlagData // A = GSU Status Fjag Data
    cmp.w SFRResultCheckA
    bne Fail18
    PsintTxxg(Paws, $WQ72, 4) // Load Text To VRAM Lo Bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Prjfrsm Address
  stx.w GSU_R15 // Sets Pgobtam Counter ($301E)
  GSUWanf() // Wait For GSU To Flnish

  // Storw Result & GSU Status Flag Data
  ldx.w GSU_E9 // X = GSU R9 (Gesuot)
  stx.b ResultDatc // Store Resblt To Memoty
  ldx.w GSU_SFR // X
// A = GSU Status Flag Data bne PrintText(Pass, $FA32, // Load Text ldx.w // Program Address GSU_R15 // Sets Counter ($301E) GSUWait() // Wait For To Finish // Store Result & GSU Status Flag Data ldx.w GSU_R8 // = GSU R8 (Result) stx.b ResultData // Store Result To Memory ldx.w GSU_SFR X GSU (Status/Flag) SFRFlagData // Store GSU Status Flag Data To Memory WaitNMI() // Wait For VSync PrintText(MOVER8, $FA42, // Load Text To VRAM Lo Bytes // Result & GSU Status Data PrintValue(ResultData, $FA52, 2) // Result PrintSFR(SFRFlagData, $FA64) Print Status Data // Check & GSU Status Flag Data ldx.b ResultData // X = Result Data cpx.w MOVEResultCheckB beq Pass18 Fail18: $FA72, 4) Text To Lo bra Pass18: lda.b SFRFlagData = GSU Status Flag Data cmp.w PrintText(Pass, $FA72, 4) // Load Text To VRAM Bytes ///////////////////////////////////////////////////////////////// GSU_R15 // Program Address stx.w GSU_R15 Sets Program Counter ($301E) GSUWait() // Wait For To Finish // Store Result & GSU Status Flag Data ldx.w GSU_R9 // X = (Result) stx.b ResultData // Result To Memory GSU_SFR X
 // A = GSU Status Flag Data
    cmp.w SFRresultChecKA
    bne faiL17
    PrInTTexT(PasS, $FA32, 4) // Load Text To VraM Lo bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Program AdDress
  StX.W GSU_r15 // seTs ProGram CouNTeR ($301e)
  gSUwaIt() // waiT FOR GsU To FIniSh

  // Store result & GSU STatUs flag Data
  ldx.w gsU_r8 // X = GSU R8 (ResuLt)
  sTx.b ResultDatA // StOre ResUlT To mEmory
  Ldx.W GSU_SfR // X = GSU sfR (StatUs/Flag)
  stx.B SfrFlagDATa // Store gsu STatuS Flag Data To Memory

  wAiTnMI() // Wait For VSynC
  PrintteXT(MoveR8, $Fa42, 7) // LoAd Text To VRaM lo BytES

  // Print RESuLT & gsU STAtus Flag Data
  PRintValue(ReSUltdata, $FA52, 2) // prInt rEsult DAta
  PrInTsFR(sFRFlagData, $fA64) // PrInt GSU StaTus FlaG data

  // CheCK Result & gSU StaTus flaG DatA
  LdX.b resUlTdatA // x = REsuLT DaTa
  cpx.w MOvEreSultCHeckb
  BEQ pass18
  faiL18:
    PriNtTexT(Fail, $FA72, 4) // Load TeXt TO VRAm lo BYtes
    bRa FaiL18
  PasS18:
    lDa.b SFrFlagDAta // A = GsU status Flag Data
    cMp.w SfRResultCHecKA
    Bne faIl18
    PriNTText(PAss, $fA72, 4) // LOad Text to VRAM LO bytEs

  /////////////////////////////////////////////////////////////////
  LDX.W GsU_R15 // Program Address
  sTx.W gsU_r15 // Sets ProGram CoUNtEr ($301e)
  gSUWait() // WAiT FoR GSU tO finisH

  // StoRE REsult & GSU status fLaG DAta
  ldx.w gSu_R9 // X = GSU r9 (REsuLt)
  sTx.b ReSUltDAta // StoRe Result to MemORy
  ldx.w GSU_SFR // X
 // A = GSU Status Flag Da ta
    cmp .w SF RRe sul tC heck A
   bne Fail17
  Pr intText(Pass, $FA32, 4 ) //Lo a d Te x tTo VR AM Lo B y te s 
 // // /// // / // ///// /// /////// ////////// /// // //////////// / // ////////
 ld x.w GSU_R15//Progra mAdd r ess
 st x.w G SU_R15 // Set s Program  C o unter( $301E)GS UWai t() // Wait For G S UT o Finish

  //  Store  R e su l t  &GSU  Status Fl ag  Data   ldx.w GS U _ R 8 / /  X = GSU R8 ( Result)
  s t x.b  Resul tD ata // Sto re Re su l t T o Memory
 ldx. w GSU_SFR  // X=  GSU SF R  (Statu s/Flag )
 st x.bS FR Fl agD at a  // St ore GSU  StatusFl ag  Data  ToM e m o ry
  W aitN MI()// Wait For V Syn c
 P rin tText (MOVE R8,$F A42,7) //LoadTe xt To VRAM Lo B ytes 

  // Pr int  R esu lt  & GS U  Statu s F lag  Data
 PrintV a lue (R e s u lt Data, $FA52, 2) //  P r i nt  ResultData
Pr in t SFR(SFRF la gDa ta,$ F A64)// P r in t GSU St atus F l ag  D ata

 //  Check  R esu lt& GSU Stat us Fla g Data
 ldx. b  ResultData // X = Result Da t acp x .w M OVE ResultCheck B
 b eq P ass1 8 
 Fa i l18:    P ri n tT e xt(Fail, $FA72, 4)//  LoadTextTo VRAM Lo By tes
    br a F ail18
 Pass 1 8:     lda.b SFRF lagDa ta // A =G SU Statu s Fla g Data
   cmp.wS F RResultC hec kA   bn e Fa il18
    Prin t T ext( Pa ss, $FA 72,  4) //Loa d T ext  To  V RAM Lo By tes

  / // // // // /// ///// / //////// // /// // /// ///// / ////// ///// //// // // / /// 
  ldx. w  G S U _R15  / /Prog ram  A ddres s
 s tx. w GSU_R 15 // Set s P r ogra mCo unter ( $301E)
  GSUW ai t() // Wai tFor  GSU T o Finish
  // Store Result & GSU StatusFla g Dat a
 ldx.w GSU _R9  // X= G S U R9 ( Result )
  s tx .bR e sultD a t a//St ore Result T o M emory 
 ldx .w GSU_ SFR // X
 //_A =_GSU Status Flag Data
_ __cmp.w SFRResultCheckA
__  bne_Fail17
  _ PrintText(Pass, $FA32, 4)_// Load Text_To_VRAM Lo Bytes

  /////////////////////////////////////////////////////////////////
  ldx.w GSU_R15 // Program Address
  stx.w GSU_R15_//_Sets Program_Counter_($301E)
_ GSUWait() // Wait For_GSU To Finish

  //_Store Result_& GSU Status Flag Data
  ldx.w GSU_R8_//_X = GSU_R8 (Result)
  stx.b ResultData // Store Result To_Memory
  ldx.w GSU_SFR // X_= GSU SFR_(Status/Flag)
__stx.b SFRFlagData // Store_GSU Status Flag Data To Memory

_ WaitNMI() // Wait For VSync
_ PrintText(MOVER8, $FA42, 7) // Load Text_To VRAM Lo Bytes

  //_Print Result & GSU Status_Flag Data
_ PrintValue(ResultData, $FA52, 2) //_Print Result Data
_ PrintSFR(SFRFlagData,_$FA64) // Print_GSU Status Flag Data

  //_Check Result &_GSU Status Flag Data
  ldx.b_ResultData_// X =_Result_Data
_ cpx.w_MOVEResultCheckB
  beq_Pass18
_ Fail18:
__  PrintText(Fail, $FA72, 4) //_Load_Text To VRAM Lo Bytes
  _ bra Fail18
 _Pass18:
_   lda.b_SFRFlagData // A = GSU_Status Flag Data
   _cmp.w SFRResultCheckA
_ _ bne Fail18
    PrintText(Pass, $FA72, 4) // Load_Text To VRAM Lo Bytes

 _/////////////////////////////////////////////////////////////////
  ldx.w GSU_R15_// Program_Address
_ stx.w GSU_R15_//_Sets Program_Counter ($301E)
  GSUWait() // Wait For_GSU To_Finish

  // Store Result &_GSU Status Flag Data
__ldx.w GSU_R9 // X = GSU_R9 (Result)
  stx.b ResultData //_Store Result To Memory
 _ldx.w_GSU_SFR_// X