====== Assembler ====== Der Grossteil der Informationen findest du in den Slides. Unten findest du primär Aufträge und Links. {{ :gf_informatik:computerarchitektur.pdf | Slides Computerarchitektur / LMC }} [[https://kantonsschuleromanshorn.sharepoint.com/:p:/s/FSInformatik/Ec-axk2h40FKok8pEbV4Ku4B-J6070APuLhi3usmMW_8yQ?e=cfU1Xe&nav=eyJzSWQiOjI2MywiY0lkIjoxOTA1MzAzMjc2fQ|Slides Branching / Labels]] ===== Little Man Computer ===== [[https://peterhigginson.co.uk/lmc/|Little Man Computer Simulation]] [[https://peterhigginson.co.uk/lmc/help.html|Little Man Computer Help]] ==== Instruction Set ==== ^ Code ^ Name ^ Description ^ | 0 | HLT | Stop (Little Man has a rest). | | 1 | ADD | Add the contents of the memory address to the Accumulator | | 2 | SUB | Subtract the contents of the memory address from the Accumulator | | 3 | STA or STO | Store the Accumulator value at the memory address given. | | 4 | | This code is unused and gives an error. | | 5 | LDA | Load the contents of the memory address given into the Accumulator. | | 6 | BRA | Branch - use the address given as the address of the next instruction | | 7 | BRZ | Branch to the address given if the Accumulator is zero | | 8 | BRP | Branch to the address given if the Accumulator is zero or positive | | 9 | INP or OUT | Input or Output. Copy Input to Accumulator if address is 1, copy Accumulator to Output if address is 2. | | 9 | OTC | Output Accumulator as a character if address is 22. (Non-standard instruction) | | 9 | DAT | Store the given number into memory.| ==== Aufgaben ==== [[gf_informatik:assembler:aufgaben_a]] [[gf_informatik:assembler:aufgaben_b]] [[gf_informatik:assembler:aufgaben_c]] [[gf_informatik:assembler:aufgaben_d]] [[gf_informatik:assembler:aufgaben_e]] [[gf_informatik:assembler:zusatzaufgaben]]