代码搜索结果
找到约 10,000 项符合
X 的代码
kernel.x
//*******************************************************************
//output
void sys_putchar(char c)
{
while (((*(int *)0x6001) & 1) == 0); //check the state register of 8251, until the TxDRY
gataxx.x
void sys_putchar(char c)
{
while (((*(int *)0x6003) & 1) == 0);
*(int *)0x6002 = (int )c;
}
char sys_getchar()
{
char ch;
while (((*(int *)0x6003) & 2) == 0);
ch = (char)((*(int *)0x
talk.x
const int limit = 200;
const int limitbuffer = 70;
char[limit] outputmem, tempinput;
char* inputmem;
char[limitbuffer] buffer;
int outputstart, inputstart;
void sys_putchar(char c
pi.x
const int LimitN = 1000;
void sys_putchar(char c)
{
%asm {
%writereg("r2", c);
%asm("LI", "r0", "1");
%asm("INT", "3");
%asm("BNEZ", "r1", "-2");
%asm("NOP");
};
}
void puts
kernel.x
//*******************************************************************
//output
void sys_putchar(char c)
{
while (((*(int *)0x6001) & 1) == 0);
*(int *)0x6000 = (int )c;
}
void sys_puts(char
x.txt
对于 i 等于 由 0 至 lenStr1
d[i, 0] := i
对于 j 等于 由 0 至 lenStr2
d[0, j] := j
对于 i 等于 由 1 至 lenStr1
对于 j 等于 由 1 至 lenStr2
若 str1[i] = str2[j] 则 cost := 0
否则 cost := 1
d[i, j] := 最小值(
d[i-1, j ] +