     } else {
         exit(10)
     }
-
+    
 }
 
 func EXX(_ a : String, _ b : String) {

    print(s, separator: "", terminator: "", to: &output)
}

//Joins the strings in a array and prints them to output 
func ln (sList : [String]) {
    for index in 0 ..< sList.count {
        nnlPrint(s: sList[index])
    }
    
    //Print a new line 
    print()
}

//If Statement (Helps reduce lines of code) 
func _if(cond : Bool, if_true : String, if_false : String ) -> String {
    if (cond) { return if_true }
    else { return if_false }


func RLC(_ a : String, _ b : String) { rotate_shift(opcode: "RLC", register: a)}

func RLCA(_ a : String, _ b : String) {
    ln(sList : ["z80.A = ( z80.A << 1 ) | ( z80.A >> 7 )"])
    ln(sList : ["z80.F = ( z80.F & ( FLAG_P | FLAG_Z | FLAG_S ) ) |"])
    ln(sList : ["        ( z80.A & ( FLAG_C | FLAG_3 | FLAG_5 ) )"])
}


func RLA(_ a : String, _ b : String) {
    ln(sList : ["var bytetemp : UInt8 = z80.A"])
    ln(sList : ["z80.A = ( z80.A << 1 ) | ( z80.F & FLAG_C )"])
