본문 바로가기
반응형

코스웨어/13년 스마트컨트롤러419

ASSEMBLY - jmp 명령어, group 파일 분석 - 전영기 ASSEMBLYjmp 명령어 (c에서는 goto 와 비슷한 역활) 예제 .386.MODEL FLAT ExitProcess PROTO NEAR32 stdcall, dxExitCode:DWORD INCLUDE io.h cr EQU 0dhLf EQU 0ah .STACK 4096 .DATAsumDWORD?explainBYTEcr, Lf, "As you input numbers one at a time, this", cr, LfBYTE"program will report the count of numbers so far.", cr, LfBYTE"the sum do far, and the average.", cr, Lf, Lf, 0promptBYTE"Number?", 0numberBYTE16 DUP (?)count.. 2013. 9. 4.
group 파일 분석 group 파일 분석!! #include #include #include int main(int iArg, char *cpaArg[]) { FILE *stpFD; char *cpRet; char *cpSGroup; char caBuff[1024]; char *cpGID = 0; char *cpGName = 0; char *cpUserlist = 0; /* /etc/group은 사용자들이 속한 그룹을 규정하는 ASCII 파일이고 한 줄에 한명씩 각 줄마다 group_name : passwd : GID : user_list 형식을 가지고 있음 */ if(2 != iArg) { printf(" group_test groupname 형식으로 입력하시오!\n"); return 0; } cpSGroup = cpaA.. 2013. 9. 3.
UNIX 숙제 -/etc/group -0903 -임기준 실행 결과 2013. 9. 3.
어셈블리 과제 - 조유진 과제 1.386.MODEL FLAT ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD INCLUDE io.h crEQU0dhLfEQU0ah .STACK4096 .DATAPrompt1BYTECR, LF, "This program will convert a Celsius "BYTE"temperature to the Fahrenheit scale", cr, Lf, LfBYTE"Enter Celsius temperature : ", 0ValueBYTE10DUP( ? )AnswerBYTEcr, Lf, "The temperature is"TemperatureBYTE6DUP( ? )BYTE"Fahrenheit", cr, Lf, 0 .CODE _start:Prompt:outpu.. 2013. 9. 2.
어셈블리 복습 (실수는 어떻게 계산 되는가?) 오늘 수업시간에 섭씨와 화씨를 계산 할떄 소수점 부분이 있었는데 아직 정수만배워서 이부분의 오차를 줄이기 위해 첩가해주는 값이 있었다 그래서 실수는 어떻게 계산되는지 궁굼해서 Visual studio에서 가볍게 돌려보았다 ※정수를 대입할떄는 mov eax를 사용하였는데지금까지 보지 못한 fld와 fstp 명령어가 사용되는 것이 보입니다이부분의 명령어를 찾아보니 저희가 배우고있는 PDF에 10장 Floating-Point Arithmetic에서 나와있었습니다fmul, fadd또한 처음 보는 명령어들임을 알수있습니다자세히는 알수없지만 지금 단계에서는 실수는 정수와 다른 명령어를 사용한다는 것을 알수있습니다 2013. 9. 2.
어셈블리어 과제_ 진종영 The formula for converting a Fahrenheit to a Celsius temperature is C = (5/9) * (F - 32) Write a complete 80x86 assembly language program to prompt for a Fahrenheit temperature and display the corresponding Celsius temperature. .386 .MODEL FLAT ExitProcess PROTO NEAR32 stdcall, dxExitCode:DWORD INCLUDE io.h cr EQU 0dh Lf EQU 0ah .STACK 4096 .DATA Prompt1 BYTE CR,LF,"This program will convert" BY.. 2013. 9. 2.
2013.09.02_사용권한설정 및 shadow 필드_깨알설명_김성엽 사용권한 설정하기 chmod ▶ Permission 을 바꿔주는 커맨드 - symbolic mode ( +기호나 - 기호 사용 ) chmod u+w smart : User 쓰기허용 추가 chmod o-wx smart : Others 쓰기, 실행 제외 - absolute mode ( 8진법을 이용한 퍼미션 설정 ) r => 4 , w => 2 , x => 1 chmod 444 smart : 0100 0100 0100 => -r--r--r-- chmod 777 smart : 0111 0111 0111 => -rwxrwxrwx chown, chgrp ▶ user와 group을 바꿔주는 커맨드 chown는 해당 파일(디렉토리)의 user(owner)를 바꾸는 것 chgrp는 group을 바꾸는 것 chown s.. 2013. 9. 2.
2013.09.02_4장어셈블리과제_김성엽 예제 4장 .386.MODEL FLAT ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD INCLUDE io.h cr EQU 0dh Lf EQU 0ah .STACK 4096 .DATA Prompt1 BYTE CR,LF,"This program will convert a Celsius " BYTE "temperature to the Fahrenheit scale",cr,Lf,Lf BYTE "Enter Celsius temperature: ",0 Value BYTE 10 DUP (?) Answer BYTE CR,LF,"The temperature is" Temperature BYTE 6 DUP (?) BYTE " Fahrenheit",cr,Lf,0 .CODE _sma.. 2013. 9. 2.
어셈블리 숙제 0902 임기준 2013. 9. 2.
728x90
반응형