- 博客(13)
- 收藏
- 关注
转载 Linux 0.11/boot/setup.s
1 ! 2 ! setup.s (C) 1991 Linus Torvalds 3 ! 4 ! setup.s is responsible for getting the system data from the BIOS, 5 ! and putting them into the appropriate places in system memory.
2007-12-18 00:44:00
812
转载 Linux 0.11/boot/head.s
1 /* 2 * linux/boot/head.s 3 * 4 * (C) 1991 Linus Torvalds 5 */ 6 7 /* 8 * head.s contains the 32-bit startup code. 9 * 10 * NOTE!!! Startup happens at absolute
2007-12-18 00:28:00
960
转载 Linux 0.11/boot/bootsect.s
1 ! 2 ! SYS_SIZE is the number of clicks (16 bytes) to be loaded. 3 ! 0x3000 is 0x30000 bytes = 196kB, more than enough for current 4 ! versions of linux 5 ! 6 SYSSIZE = 0x3000 7 ! 8 ! b
2007-12-18 00:26:00
1271
转载 自己动手写操作系统--"Hello, OS world!"
自己动手写操作系统--"Hello, OS world!" 作者:zieckey(zieckey@yahoo.com.cn)1、开发环境与工具开发环境:winxp+sp2必须安装Bochs-2.3,nasm,UltraEdit.下载nasm后,添加nasm所在目录到到path目录,建议直接将nasm放到windows或system32目录,方便从命令行调用.下载
2007-12-16 19:23:00
9432
1
原创 Java-源代码-二叉排序树
import java.util.*;class Tree{ Tree left,right; int item; public Tree(Tree left,Tree right,int item) { this.left=left; this.right=right; this.item=item; } public void insert(int item) { Tree ro
2007-10-21 17:56:00
970
原创 Java-源代码-简单例外捕获演练2
finally子句用来说明必须执行的语句,无论TRY程序块中是否抛出例外,FINALLY程序块中的语句都将会被执行.. public class ExampleFinallyException { public static void main(String[] args) { System.out.println("Hello World!"); try { int x
2007-10-20 21:20:00
551
原创 Java-源代码-简单例外捕获演练1
public class BadString { public static void main(String[] args) { System.out.println("Hello World!"); String name=null; try { if(name.equals("exception")) System.out.println("My name is "+na
2007-10-20 21:06:00
604
原创 Java-源代码-简单类继承演练
class Superclass { public boolean aVariable; public void aMethod() { aVariable = true; } public void aMethod(int i) { System.out.println(i); } public void aMethod(int i, String s) {
2007-10-20 01:45:00
745
原创 Java-源代码-控制结构演练
public class ProgramControl { public static void main(String[] args) { int i; int nSum = 0; //for循环 for (i = 0; i nSum++; System.out.println("当前的for循环变量值" + i + "累加结果" + nSum);
2007-10-20 01:28:00
480
原创 Java-源代码-运算符演练
public class Operator { private static void f(boolean b) { System.out.println(b); } public static void main(String[] args) { int x = 1; int y = 1; //运算优先级 //单操作数运算符 //算术运算符 /
2007-10-20 01:15:00
702
原创 C-源代码-计算简单表达式
#include #include #include #include int eadd(int x,int y){return x+y;}int esub(int x,int y){return x-y;}int emul(int x,int y){return x*y;}int ediv(int x,int y){return x/y;}int (*func[])(int,int)={ea
2007-10-20 00:32:00
827
原创 Java源代码-Applet-居中显示文字
import java.awt.*;import java.applet.*;public class PrintCenterString extends Applet{Font F;Color C;FontMetrics FM;int X,Y;int Ascent,Descent,Width,AppletWidth,AppletHeight;String str;public void
2007-10-20 00:28:00
2423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人