Skip to content

Commit

Permalink
. 撤销吸收命令行尾部的空格。增加变量:当前水平像素(0x834c)。
Browse files Browse the repository at this point in the history
  • Loading branch information
yaya committed Jan 18, 2022
1 parent 9957073 commit d38a055
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 3 additions & 0 deletions ChangeLog_chenall.txt
@@ -1,4 +1,7 @@
更新说明:
2022-01-18 (yaya)
撤销吸收命令行尾部的空格。增加变量:当前水平像素(0x834c)。

2021-10-15 (yaya)
修复管道符‘|’后面紧接call(或者goto)标签时,必须补空格。issues #341

Expand Down
2 changes: 1 addition & 1 deletion stage2/asm.S
Expand Up @@ -345,7 +345,7 @@ VARIABLE(buf_track)
.long 0 /* buf_track will grow to 64-bit */
VARIABLE(buf_drive)
.long -1
.long 0 /* padding */
VARIABLE(current_x_resolution) //0x834c µ±Ç°Ë®Æ½ÏñËØ int

. = EXT_C(main) + 0x150

Expand Down
9 changes: 0 additions & 9 deletions stage2/cmdline.c
Expand Up @@ -300,15 +300,6 @@ int run_line (char *heap,int flags)
int ret = 0;
int arg_len = strlen(heap) + 1;

//吸收命令行尾部空格
char *p = heap;
while (*p++);
while (*(p - 2) == ' ' || *(p - 2) == '\t')
{
*(p - 2) = 0;
p--;
}

cmd_buffer += (arg_len + 0xf) & -0x10;
memmove(cmdline_buf,heap,arg_len);
heap = cmdline_buf;
Expand Down
2 changes: 1 addition & 1 deletion stage2/graphics.c
Expand Up @@ -65,7 +65,7 @@ unsigned long xpixels = 640;
unsigned long ypixels = 480;
unsigned long plano_size = 38400;
unsigned long graphics_mode = 3;
unsigned long current_x_resolution;
//unsigned long current_x_resolution;
unsigned long current_y_resolution;
unsigned long current_bits_per_pixel;
unsigned long current_bytes_per_scanline;
Expand Down

0 comments on commit d38a055

Please sign in to comment.