about summary refs log blame commit diff stats
path: root/arc/edit.arc.t
blob: ff039602349701c8bebca5fa7cc2609755947d10 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                       
                          

            

       
                        

                             
                               
                                                                 
         

                                  














                                                                                                        

       

                                    
(selective-load "mu.arc" section-level)
(set allow-raw-addresses*)

(section 100

(reset)
(new-trace "new-screen")
(add-code:readfile "edit.mu")
(add-code
  '((function test-new-screen [
      (1:screen-address/global <- new-screen 5:literal 5:literal)
     ])))
;? (each stmt function*!new-screen
;?   (prn stmt))
(let routine make-routine!test-new-screen
  (let before rep.routine!alloc
;?     (= dump-trace* (obj blacklist '("sz" "m" "setm" "addr" "cvt0" "cvt1")))
    (run 'test-new-screen)
;?     (prn memory*)
;?     (prn memory*.2001)
    (when (~is (memory* memory*.1) 5)  ; number of rows
      (prn "F - newly-allocated screen doesn't have the right number of rows: @(memory* memory*!2001)"))
    (let row-pointers (let base (+ 1 memory*.1)
                        (range base (+ base 4)))
  ;?     (prn row-pointers)
      (when (some nil (map memory* row-pointers))
        (prn "F - newly-allocated screen didn't initialize all of its row pointers"))
      (when (~all 5 (map memory* (map memory* row-pointers)))
        (prn "F - newly-allocated screen didn't initialize all of its row lengths")))))

(reset)

)  ; section 100 for all editor code
00 00 ff be 00 00 ff ff 00 00 be ff 00 00 7d ff 00 00 41 ff 00 00 00 ff 00 00 00 ff 41 00 00 ff 7d 00 00 ff be 00 00 ff ff 00 00 be ff 00 00 7d ff 00 00 41 ff 00 7d 7d ff 00 9e 7d ff 00 be 7d ff 00 df 7d ff 00 ff 7d ff 00 ff 7d df 00 ff 7d be 00 ff 7d 9e 00 ff 7d 7d 00 ff 9e 7d 00 ff be 7d 00 ff df 7d 00 ff ff 7d 00 df ff 7d 00 be ff 7d 00 9e ff 7d 00 7d ff 7d 00 7d ff 9e 00 7d ff be 00 7d ff df 00 7d ff ff 00 7d df ff 00 7d be ff 00 7d 9e ff 00 b6 b6 ff 00 c7 b6 ff 00 db b6 ff 00 eb b6 ff 00 ff b6 ff 00 ff b6 eb 00 ff b6 db 00 ff b6 c7 00 ff b6 b6 00 ff c7 b6 00 ff db b6 00 ff eb b6 00 ff ff b6 00 eb ff b6 00 db ff b6 00 c7 ff b6 00 b6 ff b6 00 b6 ff c7 00 b6 ff db 00 b6 ff eb 00 b6 ff ff 00 b6 eb ff 00 b6 db ff 00 b6 c7 ff 00 00 00 71 00 1c 00 71 00 38 00 71 00 55 00 71 00 71 00 71 00 71 00 55 00 71 00 38 00 71 00 1c 00 71 00 00 00 71 1c 00 00 71 38 00 00 71 55 00 00 71 71 00 00 55 71 00 00 38 71 00 00 1c 71 00 00 00 71 00 00 00 71 1c 00 00 71 38 00 00 71 55 00 00 71 71 00 00 55 71 00 00 38 71 00 00 1c 71 00 38 38 71 00 45 38 71 00 55 38 71 00 61 38 71 00 71 38 71 00 71 38 61 00 71 38 55 00 71 38 45 00 71 38 38 00 71 45 38 00 71 55 38 00 71 61 38 00 71 71 38 00 61 71 38 00 55 71 38 00 45 71 38 00 38 71 38 00 38 71 45 00 38 71 55 00 38 71 61 00 38 71 71 00 38 61 71 00 38 55 71 00 38 45 71 00 51 51 71 00 59 51 71 00 61 51 71 00 69 51 71 00 71 51 71 00 71 51 69 00 71 51 61 00 71 51 59 00 71 51 51 00 71 59 51 00 71 61 51 00 71 69 51 00 71 71 51 00 69 71 51 00 61 71 51 00 59 71 51 00 51 71 51 00 51 71 59 00 51 71 61 00 51 71 69 00 51 71 71 00 51 69 71 00 51 61 71 00 51 59 71 00 00 00 41 00 10 00 41 00 20 00 41 00 30 00 41 00 41 00 41 00 41 00 30 00 41 00 20 00 41 00 10 00 41 00 00 00 41 10 00 00 41 20 00 00 41 30 00 00 41 41 00 00 30 41 00 00 20 41 00 00 10 41 00 00 00 41 00 00 00 41 10 00 00 41 20 00 00 41 30 00 00 41 41 00 00 30 41 00 00 20 41 00 00 10 41 00 20 20 41 00 28 20 41 00 30 20 41 00 38 20 41 00 41 20 41 00 41 20 38 00 41 20 30 00 41 20 28 00 41 20 20 00 41 28 20 00 41 30 20 00 41 38 20 00 41 41 20 00 38 41 20 00 30 41 20 00 28 41 20 00 20 41 20 00 20 41 28 00 20 41 30 00 20 41 38 00 20 41 41 00 20 38 41 00 20 30 41 00 20 28 41 00 2c 2c 41 00 30 2c 41 00 34 2c 41 00 3c 2c 41 00 41 2c 41 00 41 2c 3c 00 41 2c 34 00 41 2c 30 00 41 2c 2c 00 41 30 2c 00 41 34 2c 00 41 3c 2c 00 41 41 2c 00 3c 41 2c 00 34 41 2c 00 30 41 2c 00 2c 41 2c 00 2c 41 30 00 2c 41 34 00 2c 41 3c 00 2c 41 41 00 2c 3c 41 00 2c 34 41 00 2c 30 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00