{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["ReadMe","Program","Stored"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":4,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"ReadMe","index":0,"n_rows":3,"n_cols":2,"rows_kept":3,"cut":false,"hidden":false,"merged":[]}
["1.","Set the starting point point at command line with  \"bgn 1\" or with \"bgn start\" (if you have defined a corresponding label start)."]
["2.","For debugging purposes you can switch on (or off) debugging with \"dbg on\" (or \"dbg off\") at command line."]
["3.","With \"srt\" you will then start your program."]

{"sheet":"Program","index":1,"n_rows":204,"n_cols":10,"rows_kept":204,"cut":false,"hidden":false,"merged":[[1,3,1,5]]}
["Minicalculator",null,null,"Direct Input = Command Line:",null,null,null,null,null,"Message / Error message:"]
["===========",null,null,"srt",null,null,null,null,null,"Program will be started at pc = 1"]
[]
["Direct Mode:",null,null,"Row #","Label","OpCode","Argument","Comment",null,"Output area:"]
["bgn <adr>","pc := <adr>",null,1,"start","bsa","gcd",null,null,"Greatest common divisor is:"]
["dbg on|off","Debug mode on or off",null,2,null,"out","out_gcd",null,null,250]
["srt","Start program",null,3,null,"out","result_gcd",null,null,"Lowest common multiple is:"]
[null,null,null,4,null,"bsa","lcm",null,null,3750]
["Program Mode:",null,null,5,null,"out","out_lcm",null,null,"Program end in row 7."]
["add <adr>","acc := acc + <adr>",null,6,null,"out","result_lcm"]
["beq <adr>","Go to <adr> if acc = 0",null,7,null,"hlt"]
["bgr <adr>","Go to <adr> if acc > 0",null,8,"gcd","lda","arg1"]
["ble <adr>","Springe nach <adr> wenn acc < 0",null,9,null,"sta","temp1"]
["bsa <adr>","Call subroutine at <adr>",null,10,null,"lda","arg2"]
["bun <adr>","Go to <adr>",null,11,null,"sta","temp2"]
["cla","acc := 0",null,12,"gcd_intern","lda","temp1"]
["dac","acc := acc - 1",null,13,null,"sub","temp2"]
["div <adr>","acc := acc / <adr> (integer division!)",null,14,null,"beq","end_gcd"]
["hlt","Program end",null,15,null,"bgr","store"]
["iac","acc := acc + 1",null,16,null,"lda","temp2"]
["lda <adr>","acc := <adr>",null,17,null,"sub","temp1"]
["mul <adr>","acc := acc * <adr>",null,18,null,"sta","temp2"]
["out <adr>","Print <adr>",null,19,null,"bun","gcd_intern"]
["ret","Return from subroutine",null,20,"store","sta","temp1"]
["sta <adr>","<adr> := (acc)",null,21,null,"bun","gcd_intern"]
["sub <adr>","acc := acc - <adr>",null,22,"end_gcd","lda","temp1"]
[null,null,null,23,null,"sta","result_gcd"]
[null,null,null,24,null,"ret"]
[null,null,null,25,"lcm","lda","arg1"]
[null,null,null,26,null,"div","result_gcd"]
[null,null,null,27,null,"mul","arg2"]
[null,null,null,28,null,"sta","result_lcm"]
[null,null,null,29,null,"ret"]
[null,null,null,30,"temp1",null,250]
[null,null,null,31,"temp2",null,250]
[null,null,null,32,"out_gcd",null,"Greatest common divisor is:"]
[null,null,null,33,"out_lcm",null,"Lowest common multiple is:"]
[null,null,null,34,"arg1",null,750]
[null,null,null,35,"arg2",null,1250]
[null,null,null,36,"result_gcd",null,250]
[null,null,null,37,"result_lcm",null,3750]
[null,null,null,38]
[null,null,null,39]
[null,null,null,40]
[null,null,null,41]
[null,null,null,42]
[null,null,null,43]
[null,null,null,44]
[null,null,null,45]
[null,null,null,46]
[null,null,null,47]
[null,null,null,48]
[null,null,null,49]
[null,null,null,50]
[null,null,null,51]
[null,null,null,52]
[null,null,null,53]
[null,null,null,54]
[null,null,null,55]
[null,null,null,56]
[null,null,null,57]
[null,null,null,58]
[null,null,null,59]
[null,null,null,60]
[null,null,null,61]
[null,null,null,62]
[null,null,null,63]
[null,null,null,64]
[null,null,null,65]
[null,null,null,66]
[null,null,null,67]
[null,null,null,68]
[null,null,null,69]
[null,null,null,70]
[null,null,null,71]
[null,null,null,72]
[null,null,null,73]
[null,null,null,74]
[null,null,null,75]
[null,null,null,76]
[null,null,null,77]
[null,null,null,78]
[null,null,null,79]
[null,null,null,80]
[null,null,null,81]
[null,null,null,82]
[null,null,null,83]
[null,null,null,84]
[null,null,null,85]
[null,null,null,86]
[null,null,null,87]
[null,null,null,88]
[null,null,null,89]
[null,null,null,90]
[null,null,null,91]
[null,null,null,92]
[null,null,null,93]
[null,null,null,94]
[null,null,null,95]
[null,null,null,96]
[null,null,null,97]
[null,null,null,98]
[null,null,null,99]
[null,null,null,100]
[null,null,null,101]
[null,null,null,102]
[null,null,null,103]
[null,null,null,104]
[null,null,null,105]
[null,null,null,106]
[null,null,null,107]
[null,null,null,108]
[null,null,null,109]
[null,null,null,110]
[null,null,null,111]
[null,null,null,112]
[null,null,null,113]
[null,null,null,114]
[null,null,null,115]
[null,null,null,116]
[null,null,null,117]
[null,null,null,118]
[null,null,null,119]
[null,null,null,120]
[null,null,null,121]
[null,null,null,122]
[null,null,null,123]
[null,null,null,124]
[null,null,null,125]
[null,null,null,126]
[null,null,null,127]
[null,null,null,128]
[null,null,null,129]
[null,null,null,130]
[null,null,null,131]
[null,null,null,132]
[null,null,null,133]
[null,null,null,134]
[null,null,null,135]
[null,null,null,136]
[null,null,null,137]
[null,null,null,138]
[null,null,null,139]
[null,null,null,140]
[null,null,null,141]
[null,null,null,142]
[null,null,null,143]
[null,null,null,144]
[null,null,null,145]
[null,null,null,146]
[null,null,null,147]
[null,null,null,148]
[null,null,null,149]
[null,null,null,150]
[null,null,null,151]
[null,null,null,152]
[null,null,null,153]
[null,null,null,154]
[null,null,null,155]
[null,null,null,156]
[null,null,null,157]
[null,null,null,158]
[null,null,null,159]
[null,null,null,160]
[null,null,null,161]
[null,null,null,162]
[null,null,null,163]
[null,null,null,164]
[null,null,null,165]
[null,null,null,166]
[null,null,null,167]
[null,null,null,168]
[null,null,null,169]
[null,null,null,170]
[null,null,null,171]
[null,null,null,172]
[null,null,null,173]
[null,null,null,174]
[null,null,null,175]
[null,null,null,176]
[null,null,null,177]
[null,null,null,178]
[null,null,null,179]
[null,null,null,180]
[null,null,null,181]
[null,null,null,182]
[null,null,null,183]
[null,null,null,184]
[null,null,null,185]
[null,null,null,186]
[null,null,null,187]
[null,null,null,188]
[null,null,null,189]
[null,null,null,190]
[null,null,null,191]
[null,null,null,192]
[null,null,null,193]
[null,null,null,194]
[null,null,null,195]
[null,null,null,196]
[null,null,null,197]
[null,null,null,198]
[null,null,null,199]
[null,null,null,200]

{"sheet":"Stored","index":2,"n_rows":39,"n_cols":5,"rows_kept":39,"cut":false,"hidden":false,"merged":[]}
["Programcode:"]
["Row #","Label","OpCode","Argument","Comment"]
[1,"start","bsa","gcd"]
[2,null,"out","out_gcd"]
[3,null,"out","result_gcd"]
[4,null,"bsa","lcm"]
[5,null,"out","out_lcm"]
[6,null,"out","result_lcm"]
[7,null,"hlt"]
[8,"gcd","lda","arg1"]
[9,null,"sta","temp1"]
[10,null,"lda","arg2"]
[11,null,"sta","temp2"]
[12,"gcd_intern","lda","temp1"]
[13,null,"sub","temp2"]
[14,null,"beq","end_gcd"]
[15,null,"bgr","store"]
[16,null,"lda","temp2"]
[17,null,"sub","temp1"]
[18,null,"sta","temp2"]
[19,null,"bun","gcd_intern"]
[20,"store","sta","temp1"]
[21,null,"bun","gcd_intern"]
[22,"end_gcd","lda","temp1"]
[23,null,"sta","result_gcd"]
[24,null,"ret"]
[25,"lcm","lda","arg1"]
[26,null,"div","result_gcd"]
[27,null,"mul","arg2"]
[28,null,"sta","result_lcm"]
[29,null,"ret"]
[30,"temp1",null,250]
[31,"temp2",null,250]
[32,"out_gcd",null,"Greatest common divisor is:"]
[33,"out_lcm",null,"Lowest common multiple is:"]
[34,"arg1",null,750]
[35,"arg2",null,1250]
[36,"result_gcd",null,250]
[37,"result_lcm",null,3750]