luqibin / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

shift operator problem 0.4.5c 20141012 #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

In older versions this code worked (note spaces around >> )
set /a M=*0x8298 & 0xffffffff >>10+1 > nul && set /a M1=*0x82c0>> 10+1 > nul
set /a M=%M% + %M1% > nul
set B64=[%M%MB %B64%]

But in new version I have to remove the spaces to make it work

set /a M=*0x8298 & 0xffffffff>>10+1 > nul && set /a M1=*0x82c0>>10+1 > nul
set /a M=%M% + %M1% > nul
set B64=[%M%MB %B64%]

What is the expected output? What do you see instead?

expected 1152MB (old grldr)
but new version shows 1178561MB

new grldr not compatible with old versions.
if remove spaces then new version also prints 1152MB

What version of the product are you using? On what operating system?
0.4.5c 20141012

Please provide any additional information below.

0.4.6a 20141015 also has same issue

Original issue reported on code.google.com by Steve6375 on 15 Oct 2014 at 10:04

GoogleCodeExporter commented 9 years ago
This is changed for issue 204.

Please try this,and retest with issue 204(#34-#53)

Original comment by chenall.cn on 17 Oct 2014 at 12:05

Attachments:

GoogleCodeExporter commented 9 years ago
This version corrupts ?_BOOT variable same as before
all NNNNNNNN with sedillas

It does however continue with the commands in the checkaccess.g4b batch file 
and continue with the commands in the menu.lst.

So it almost works - just that ?_BOOT is getting corrupted.

Original comment by Steve6375 on 17 Oct 2014 at 5:40

GoogleCodeExporter commented 9 years ago
I don't know why variable lost,may be there is BUG ins BIOS or GRUB4DOS has 
hidden unknown bug.

Please try this,if still corrupts i think is unable to solve current.

Original comment by chenall.cn on 18 Oct 2014 at 12:53

Attachments:

GoogleCodeExporter commented 9 years ago
That works!

Original comment by Steve6375 on 18 Oct 2014 at 1:47

GoogleCodeExporter commented 9 years ago
Thanks again for your reported!

Original comment by chenall.cn on 18 Oct 2014 at 3:11