SIC/XE hypothetical computer
Appendix A
SicTool로 과제를 작성하는데, 강의노트에 적힌 instruction을 보면서 하기 힘들어 찾은 깃허브 주소.
https://github.com/m-dimmitt/SIC-XE-Instructions
GitHub - m-dimmitt/SIC-XE-Instructions: Copied Appendix A from a book that exposes the API for SIC/XE 🚀 🎩
Copied Appendix A from a book that exposes the API for SIC/XE 🚀 🎩 - GitHub - m-dimmitt/SIC-XE-Instructions: Copied Appendix A from a book that exposes the API for SIC/XE 🚀 🎩
github.com
이하는 어셈블리어 작성하면서 실수했던 부분
- Mnemonic 뒤에 붙는 m은 메모리, r1과 r2는 레지스터를 의미한다. 두 개를 혼용해서 쓰지 말자.
- LDA m, X로 써서 index addressing을 할 수 있다. 그러나, 반드시 Register X를 써야한다. (X는 index 용도로 사용하기)
- 이왕이면 LDA m, X 보다 LDCH m, X로 사용하자. rightmost byte에서 가져오기 때문.