본문 바로가기
반응형

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

API 숙제 -1002 임기준 소스#include LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);HINSTANCE g_hInst;LPCTSTR lpszClass = TEXT("KIJOON"); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpszCmdParam, int nCmdShow){HWND hWnd;MSG Message;WNDCLASS WndClass;g_hInst = hInstance; WndClass.cbClsExtra = 0;WndClass.cbWndExtra = 0;WndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);WndClass.h.. 2013. 10. 2.
20131002 어셈블리 -서준영 Context.c #include #include #include #include #include #include #define MAX_PROGRAM_SIZE 0x10000 // 64kB #define SECTION_SIZE 512 #define MAX_HEXA 160 typedef struct _context { int efl; int eip; int edi; int esi; int ebp; int esp; int ebx; int edx; int ecx; int eax; } Context; typedef struct _CMDMAP { void *vpCmd; void (*Fp)(void); // 함수 포인터 } CMDMAP; static unsigned char Mem[MAX_PROGRAM_SIZE*2].. 2013. 10. 2.
20131002 ASSEMBLY - 전영기 시작화면 code 명령 실행 엔터를 치면 다음메모리로 넘어감 data명령 입력 stack명령 입력 load명령t1.exe를 메모리에 적재적재 후 code영역 확인 code영역 확인 data영역 확인 go명령어 실행실행 후 code영역 실행 후 data영역값이 바뀜을 확인 실행 후 stack영역값이 생김을 확인 메모리 클리어clear명령 파일이 로드되지 않았을 경우 go명령어 수행 정상적이지 않은 파일의 실행 정상적이지 않은 파일의 적재 2013. 10. 2.
메모리,레지스터 프로그램 2013. 10. 2.
131002 수 _ 어셈블리 김성엽 Source#include #include #include #include #include #include #define MAX_PROGRAM_SIZE 0x10000 // 64Kbyte #define SECTION_SIZE 512 typedef struct _CONTEXT1 { int efl; int eip; int edi; int esi; int ebp; int esp; int ebx; int edx; int ecx; int eax; }CONTEXT1; void PrintCODE(void); void PrintDATA(void); void PrintSTACK(void); void EXIT(void); void HELP(void); void PrintLOAD(void); void Clear_mem(voi.. 2013. 10. 2.
20130930 정리(RFID, context switching ) __________RFID & UNIX____________________________________________________________________________ RFID 리더기에 HOST명령 전송 (Protocols for Reader Control) #include #include #include #include #include #include #include #define SPEED B38400 #define SPORT "/dev/ttyS1" //Serial Port2 unsigned short CRC16(unsigned char *, unsigned int); void Handle_Serial_Sig(int); volatile int iBreak = 0; int main() { cha.. 2013. 10. 1.
131001 화 어셈블리 조유진 사진 틀린 명령어 입력시 명령어 목록을 보여줌 프로그램이 메모리에 적재되지 않은 경우 프로그램 적재 적재 프로그램 실행 전 데이터 영역 적재한 프로그램 실행 직후 데이터 영역 #include #include #include #include #include #define MAX_PROGRAM_SIZE 0x10000 // 64KB #define SECTION_SIZE 512 #define MEMORY_START 0 #define MEMORY_END 1 #define CODE 2 #define DATA 3 #define STACK 4 typedef struct _command { const unsigned char *ucpCommand; const unsigned char *ucpDetail; void( *f.. 2013. 10. 1.
130930 월 어셈블리 숙제 조유진 뭔가 이상한 점이 많지만 돌아가긴 하네요음...;; 코드 영역 데이터 영역 DATA가 512만큼 움직여야 하는 이유... 512가 나오는 것을 알 수 있다.. #include #include #include #include #include #define MAX_PROGRAM_SIZE 0x10000 // 64KB #define SECTION_SIZE 512 #define MEMORY_START 0 #define MEMORY_END 1 #define CODE 2 #define DATA 3 #define STACK 4 typedef struct _command { const unsigned char *ucpCommand; void( *fp )(); } COMMAND; typedef struct _CONTEXT.. 2013. 9. 30.
PE 헤더 구조, 응용 프로그램 원리 pdf 좋은 자료인 것 같아서 올립니다 ^^ 둘다 같은 사이트에서 받았는데 내용이랑 크기가 조금 달라요. 참고하시기 바랍니당 2013. 9. 27.
728x90
반응형