         }
     }
     
-    func fontRect(c8:UInt8) -> NSRect {
+    func fontRectX(c8:UInt8) -> NSRect {
         let c = Int(c8)
         let low = c & 0xF
         let high = 15 - ((c & 0xF0) >> 4)
         return NSRect(x: low * 8, y: high * 8, width: 8, height: 8)
     }
     
-    func fontRectX(c8:UInt8) -> NSRect {
-        let c = Int(c8)
-        let low = c & 0xF
-        let high = ((c & 0xF0) >> 4)
-        return NSRect(x: low * 8, y: high * 8, width: 8, height: 8)
-    }
-    
-    
-    func vram2Image() {
+    // Core Graphicsによるイメージ生成
+    func vram2ImageCG() {
         let image = NSBitmapImageRep(data: fontImage.TIFFRepresentation!)?.CGImage!
         
         let widthBits = width * 8

                            putChar( x, y: y, c: 0x20)
                        }
                    }
                    vram2Image()
                    break
                    
                case 0x13:

        for c in str {
            switch interpreterState {
            case .TakeX:
                cursorX = Int(c) - 32 - 1
                interpreterState = .TakeY
                break
                
            case .TakeY:
                cursorY = Int(c) - 32 - 1
                interpreterState = .Idle
                break
                
