일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- 데이트
- ansible install
- C언어
- c++
- python
- streamsets 강의
- 도커 elk
- MySQL
- 도커 mysql
- docker
- 자바
- mysql on docker
- c
- 푸시푸시
- 스트림셋
- 백준
- 클라우드
- 데이터베이스
- elk stack
- 도커
- 코딩
- mysql docker
- 도커 시작하기
- 정보처리기사
- java
- 알고리즘
- 앤서블 설치
- 스트림셋이란?
- nvidia docker
- 파이썬
- Today
- Total
목록프로그래밍 언어/Assembly (20)
리그캣의 개발놀이터
배열 더하기 12345678910111213141516171819202122232425262728293031323334353637383940414243INCLUDE Irvine32.inc .dataarrayA BYTE 10,20,30,40,50,60arrayB WORD 11,22,33,44,55,66arrayC DWORD 1,2,3,4,5,6 .codemain proc mov eax,0 mov edx,OFFSET arrayA mov ecx,LENGTHOF arrayA-1 A: add al,[edx] add edx,TYPE arrayA loop A call WriteInt call crlf mov eax,0 mov edx,OFFSET arrayB mov ecx,LENGTHOF arrayB B: add ax..
쉬프트(shift) 사용하기 1234567891011121314151617181920212223242526272829INCLUDE Irvine32.inc .databuffer BYTE 32 DUP(0),0 .codemain PROC mov ecx,32 mov esi,OFFSET buffer mov eax,14 call WriteBin call crlfL1: shl eax,1 mov BYTE PTR [esi],'0' jnc L2 mov BYTE PTR [esi],'1'L2: call WriteBin call crlf inc esiloop L1 exit main ENDPEND maincs
피라미드(Piramid) 12345678910111213141516171819202122232425262728293031323334353637383940INCLUDE Irvine32.inc.datastr1 BYTE "Input Char: ",0str2 BYTE "Input Int: ",0str4 BYTE ?num DWORD ? .code main PROC mov edx, OFFSET str1call WriteStringcall ReadCharcall WriteCharmov str4, almov ecx, 0call crlf mov edx, OFFSET str2call WriteStringcall ReadIntmov num, eaxmov ecx, 0 mov ecx,nummov al,str4L1:push ec..
루프사용하기2 123456789101112131415161718192021222324252627282930313233343536TITLE Loopin Include Irvine32.inc .datacount DWORD ?outer BYTE "Outer Loop: ",0inner BYTE "Inner Loop: ",0ocnt DWORD ? .codemain PROC mov eax,0 mov ecx,100L1: mov edx,OFFSET outer call WriteString inc eax call WriteInt call Crlf mov ocnt,eax mov eax,0 mov count,ecx mov ecx,20L2: mov edx,OFFSET inner call WriteString inc eax c..
가장 큰 값 찾기 12345678910111213141516171819202122232425262728293031INCLUDE Irvine32.inc .datastr1 BYTE "Input Number1: ",0str2 BYTE "Input Number2: ",0str3 BYTE "Large Number: ",0Num1 DWORD ? ,0Num2 DWORD ?,0.codemain PROCmov edx,OFFSET str1call WriteStringcall ReadIntmov Num1, eax mov edx,OFFSET str2call WriteStringcall ReadIntmov Num2,eax .if eax
string 값 입력 받기 1234567891011121314151617181920212223242526272829303132333435TITLE InputString INCLUDE Irvine32.inc .data Ask BYTE "Put in your answer:",0 Answer BYTE 8 DUP(?) Count DWORD ? .codemain PROC mov edx, OFFSET Ask call WriteString mov edx, OFFSET Answer mov ecx, SIZEOF Answer-1 call ReadString mov Count, eax mov ecx, Count mov esi, 0 L1: mov al, Answer[esi] push eax inc esi call WriteC..
1234567891011121314151617181920212223242526272829TITLE IndirectLoop (IndirectLoop.asm) INCLUDE Irvine32.inc .data Xbyte BYTE 1,2,3,4,5,6,7,8,9 ;Xbyte에 값저장 Ybyte BYTE 1,2,3,4,5,6,7,8,9 ;Ybyte에 값저장 Zbyte BYTE 9 DUP(0) ;Zbyte 크기[9]배열을 0으로 초기값지정. Countz BYTE 0 ;배열이동위한 COUNT.codemain PROC mov ecx,9 ;9번반복 mov eax, 00000000h ;eax초기화 mov esi,OFFSET Xbyte ;esi에 Xbyte시작주소 저장 mov edi,OFFSET Ybyte ;edi에 Yby..
16진수를 10진수로 변환하기 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657TITLE HexTODecINCLUDE Irvine32.inc.DATA str1 BYTE "Input Hex:",0 str2 BYTE "output Dec:",0 str3 BYTE "Continue?(y/n):",0 str4 BYTE "Error",0 key DWORD ?,0 .CODE main PROC op: mov edx,OFFSET str1 call writestring mov eax,0 call readhex push eax call crlf mov edx,OFFSET str2 ca..