Skip to content

Instantly share code, notes, and snippets.

@oraccha
Created December 26, 2010 08:22
Show Gist options
  • Save oraccha/755299 to your computer and use it in GitHub Desktop.
Save oraccha/755299 to your computer and use it in GitHub Desktop.
xx7762番地のmovb命令で、紙テープから読み込んだ内容でxx7752番地(xx7400+オフセット)以降を上書きしているように見えるが、その理解は間違っている?
address contents
======================
xx7744 016701 ; mov 026(r7), r1 -> mov #177550, r1
xx7746 000026
; (r1にデバイスアドレスをロード)
xx7750 012702 ; mov #0352, r2
xx7752 000352 ; オフセット(xx7770番地のinc命令でこの値がincrementされる)
xx7754 005211 ; inc (r1)
; (readerをenableにする)
xx7756 105711 ; tstb (r1)
xx7760 100376 ; bpl .-2
; (data bufferから読込みの準備ができるまで待つ)
xx7762 116162 ; movb 2(r1), xx7400(r2)
xx7764 000002
xx7766 xx7400
; (data bufferからメモリへデータを読み込む)
xx7770 005267 ; inc 177756(r7) -> inc -18(r7) -> inc (xx7752)
xx7772 177756
xx7774 000765 ; br .-11
; (xx7750番地に戻る)
xx7776 177550 ; device address, 177550 for paper reader (PC11)
----
xx:
xx Memory Size
===========================
017744 4k
037744 8K
057744 12K
077744 16k
117744 20k
137744 24k
157744 28k
(or larger)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment