Skip to content

Instantly share code, notes, and snippets.

@torpedo87
Created February 25, 2020 12:54
Show Gist options
  • Save torpedo87/d7ae1c3820efa7b6a90de5f38b05d18e to your computer and use it in GitHub Desktop.
Save torpedo87/d7ae1c3820efa7b6a90de5f38b05d18e to your computer and use it in GitHub Desktop.
어셈블러

어셈블러

  • 어셈블리 명령의 필드를 분석해서 동일한 의미의 2진코드로 바꾸고 그 코드들을 실제로 하드웨어에서 실행가능한 2진 명령어로 조립
  • 기호 사용 = 변수, 레이블
  • 기호 테이블을 사용해서 기호변환
  • asm -> hack

가정

  • 명령어 1024개짜리 프로그램
  • 명령어들이 단어 하나에 매핑
  • 각 변수가 하나의 메모리 위치를 점유

module

  • parser = 구문 분석, 분해
  • Code = 2진 코드
  • symbol table = 기호
  • main = 번역 실행
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment