본문 바로가기

소스

VHDL.Verilog HDL. Count zeros-combination.소스. Count zeros-Combinational version. source. 제로를 카운트하는 소스 출처 : http://www.soe.ucsc.edu/classes/cmpe225/Fall01/synver.pdf the circuit must determine two things: The presence of a value containg exactly one sequence of Zeroes. 값이 정확하게 하나의 '0'의 연속으로 나와야 한다. The number of zeroes in the sequence. 연속적인 '0'의 개수. The circuit must complete this computation in a single clock cycle. 그 회로는 반드시 한클럭 사이클안에 계산이 끝.. 더보기
구글.안드로이드.Google.Android.소스. TranslucentFancyActivity.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/TranslucentFancyActivity.html/* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b.. 더보기
구글.안드로이드.Google.Android.소스. TranslucentActivity.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/TranslucentActivity.html/* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app.. 더보기
구글.안드로이드.Google.Android.소스. RedirectEnter.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/RedirectEnter.html /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab.. 더보기
구글.안드로이드.Google.Android.소스. Forwarding.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/Forwarding.html /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable .. 더보기
구글.안드로이드.Google.Android.소스. ReceiveResult.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/ReceiveResult.html /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab.. 더보기
구글.안드로이드.Google.Android.소스. PersistentState.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/PersistentState.html * Copyright (C) 2007 Google Inc. /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab.. 더보기
구글.안드로이드.Google.Android.소스. SaveRestoreState.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/SaveRestoreState.html /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli.. 더보기
구글.안드로이드.Google.Android.소스. HelloWorld.java 원본 : http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/HelloWorld.html /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable .. 더보기
HEX editor 소스. 음.... 하드 구석에 있던 넘인데, 최종 수정일이 99년으로 나와있는데... 학교 수업할때만든건지, 어디서 퍼온건지, 심심해서 만든건지 기억도 않남... --; ----------------------------------------------------------- #include "stdio.h" #include "conio.h" #include "stdafx.h" #include "stdlib.h" #include "windows.h" void gotoxy(int x, int y) { COORD Pos = {x - 1, y - 1}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), Pos); } char *data=NULL; char *fil.. 더보기
MDE 80196 KIT, LED 점멸 80196 키트로 만든 간단한 LED점멸.. 이키트는 P1.0~P1.3까지 4개의 LED의 조정이 가능하다. LED에 불을 키려면 해당포트에 LOW를 주면된다(0), 상위의 4비트가 키보드에 연결되어있기때문에, 하위 4비트만을 이용해서 컨트롤. 시작번지가 4000번지(이후 모델들은 2080) 간단하게 레지스터에 값을 넣어서 SHIFT RIGHT해서 LED 점멸시킨다. LED.A96 --------------------------------------------------------------------- BREG1 EQU 20H WREG EQU 22H P1 EQU 0FH CSEG AT 4000H START: LDB BREG1,#1110111B LOOP: SHRB BREG1,#1 ORB BREG1,#0F0.. 더보기
퀵소트 소스,Quick Sort source.참고 /*--------------------------------------------------------------------------*/ /* Purpose: qsort */ /*--------------------------------------------------------------------------*/ static void swapmem(char *a, char *b, size_t size) { register char t; register int i; for (i = 0; i < size; ++i,++b,++a) { t = *a; *a = *b; *b = t; } } /* qsort() 함수는 빠르게 정렬을 시킵니다. nmemb를 정렬시킬 위치를 나타냅니다. base는 정렬할 첫번째 요.. 더보기