==================================Outline====================================
Bit Manipulation
Shift and Rotate Instructions
----------------------------------------------------------------------------
p/259
Converting a 2' Complement Integer to an ASCII string
아는 것임으로 패스
p/267
Bit Manipulation
다 아는 것임으로 넘어간다....
클럭 사이클이 메모리가 개입하면 눈에 띄게 커지는 것을 알 수 있다.
‘test'명령어는 결과 값이 accumulator 레지스터에 들어가는 것과는 제외하는 ’and' 연산과 동일하다. 'test'는 명령어는 특정 비트의 값을 확인하거나 추출하기 위해서 사용된다.
test dx, 2000h ; check bit 13
Shift and Rotate Instructions
p/278
h(로직): 쉬프트를 사용하면 빈 자리는 무조건 ‘0’으로 채워진다.
a(연산): 음수/양수를 판별하여 음수일 경우 빈자리를 ‘1’, 양수일 경우 ‘0’으로 채워준다.
예제를 통해 확인해 보자.
operand가 3개인 쉬프트연산도 사용할 수 있다.
//해당 명령어가 존재한다는 것만 알고 있자.
'Busan IT > Assembly' 카테고리의 다른 글
String Instruction, Character Translation (0) | 2015.11.03 |
---|---|
Repeat Prefixes and More String Instructions (0) | 2015.11.02 |
String Operation (0) | 2015.10.29 |
task switching (0) | 2015.10.29 |
메모리 출력 함수 'memory_display' 프로그램 실행 함수, ‘program_execute' (0) | 2015.10.24 |