The formula for converting a Fahrenheit to a Celsius temperature is and display the corresponding Celsius temperature. |
ExitProcess PROTO NEAR32 stdcall, dxExitCode:DWORD
INCLUDE io.h
cr EQU 0dh
.STACK 4096
.DATA Prompt1 BYTE CR,LF,"This program will convert" Answer BYTE CR,LF,"C =" .CODE
sub ax, 32 ; ax = (F-32) cwd ;ax 부호확장
itoa Temperature, ax output Answer
|
.386
ExitProcess PROTO NEAR32 stdcall, dxExitCode:DWORD
INCLUDE io.h
cr EQU 0dh
.STACK 4096
.DATA Prompt1 BYTE CR,LF,"This program will convert a Celsius "
;F = (9/5)*C + 32
imul ax, 9 ; C*9 output Answer PUBLIC _start
|
'코스웨어 > 13년 스마트컨트롤러' 카테고리의 다른 글
group 파일 분석 (0) | 2013.09.03 |
---|---|
UNIX 숙제 -/etc/group -0903 -임기준 (0) | 2013.09.03 |
어셈블리 과제 - 조유진 (0) | 2013.09.02 |
어셈블리 복습 (실수는 어떻게 계산 되는가?) (1) | 2013.09.02 |
2013.09.02_사용권한설정 및 shadow 필드_깨알설명_김성엽 (0) | 2013.09.02 |
2013.09.02_4장어셈블리과제_김성엽 (0) | 2013.09.02 |
어셈블리 숙제 0902 임기준 (0) | 2013.09.02 |
어셈블리 과제2 - 손초롱 (0) | 2013.09.02 |