[Problem] Cant add negative offsets #299

Open
opened 2026-01-29 16:13:52 +00:00 by claunia · 0 comments
Owner

Originally created by @eubrunosilva on GitHub (May 23, 2021).

Originally assigned to: @mnadareski on GitHub.

trying to use negative offset
if I run dic.exe directly

C:\dump\Programs\Creator>DiscImageCreator.exe cd f iso\foo\foo.bin 0 /a -32
AppVersion
        x86, AnsiBuild, 20210401T101950
C:\dump\Programs\Creator\iso\foo\ doesn't exist, so create.
CurrentDirectory
        C:\dump\Programs\Creator
WorkingPath
         Argument: iso\foo\foo.bin
         FullPath: C:\dump\Programs\Creator\iso\foo\foo.bin
            Drive: C:
        Directory: \dump\Programs\Creator\iso\foo\
         Filename: foo
        Extension: .bin
StartTime: 2021-05-23T12:33:09+0100
[WARNING] /c2 isn't set. The result of dumping may be incorrect if c2 error exists.
This drive supports [OpCode: 0xd8, SubCode: 1]
This drive supports [OpCode: 0xd8, SubCode: 2]
This drive supports [OpCode: 0xd8, SubCode: 8]
Checking reading lead-in -> OK
Checking SubQ adr (Track) 17/17
Checking SubRtoW (Track) 17/17
Set OpCode: 0xd8, SubCode: 2(Pack)
Checking SubQ ctl (Track) 17/17
Creating .scm (LBA)  47173/269902

dic doesnt warn me about value for offset and uses the offset I wrote

but if I use the same parameters in MPF

AppVersion
        x86, AnsiBuild, 20210401T101950
/a val was omitted. set [0]
CurrentDirectory
        C:\dump
WorkingPath
         Argument: ISO\AudioCD\AudioCD.bin
         FullPath: C:\dump\ISO\AudioCD\AudioCD.bin
            Drive: C:
        Directory: \dump\ISO\AudioCD\
         Filename: AudioCD
        Extension: .bin
StartTime: 2021-05-23T12:36:30+0100
Set the drive speed: 12700KB/sec
[WARNING] /c2 isn't set. The result of dumping may be incorrect if c2 error exists.
This drive supports [OpCode: 0xd8, SubCode: 1]
This drive supports [OpCode: 0xd8, SubCode: 2]
This drive supports [OpCode: 0xd8, SubCode: 8]
Checking reading lead-out -> OK
Checking SubQ adr (Track) 11/17

I get a "/a val was omitted. set [0]"

and it dumps with offset 0

maybe it doesn't parse values with - sign?

Originally created by @eubrunosilva on GitHub (May 23, 2021). Originally assigned to: @mnadareski on GitHub. trying to use negative offset if I run dic.exe directly ``` C:\dump\Programs\Creator>DiscImageCreator.exe cd f iso\foo\foo.bin 0 /a -32 AppVersion x86, AnsiBuild, 20210401T101950 C:\dump\Programs\Creator\iso\foo\ doesn't exist, so create. CurrentDirectory C:\dump\Programs\Creator WorkingPath Argument: iso\foo\foo.bin FullPath: C:\dump\Programs\Creator\iso\foo\foo.bin Drive: C: Directory: \dump\Programs\Creator\iso\foo\ Filename: foo Extension: .bin StartTime: 2021-05-23T12:33:09+0100 [WARNING] /c2 isn't set. The result of dumping may be incorrect if c2 error exists. This drive supports [OpCode: 0xd8, SubCode: 1] This drive supports [OpCode: 0xd8, SubCode: 2] This drive supports [OpCode: 0xd8, SubCode: 8] Checking reading lead-in -> OK Checking SubQ adr (Track) 17/17 Checking SubRtoW (Track) 17/17 Set OpCode: 0xd8, SubCode: 2(Pack) Checking SubQ ctl (Track) 17/17 Creating .scm (LBA) 47173/269902 ``` dic doesnt warn me about value for offset and uses the offset I wrote but if I use the same parameters in MPF ``` AppVersion x86, AnsiBuild, 20210401T101950 /a val was omitted. set [0] CurrentDirectory C:\dump WorkingPath Argument: ISO\AudioCD\AudioCD.bin FullPath: C:\dump\ISO\AudioCD\AudioCD.bin Drive: C: Directory: \dump\ISO\AudioCD\ Filename: AudioCD Extension: .bin StartTime: 2021-05-23T12:36:30+0100 Set the drive speed: 12700KB/sec [WARNING] /c2 isn't set. The result of dumping may be incorrect if c2 error exists. This drive supports [OpCode: 0xd8, SubCode: 1] This drive supports [OpCode: 0xd8, SubCode: 2] This drive supports [OpCode: 0xd8, SubCode: 8] Checking reading lead-out -> OK Checking SubQ adr (Track) 11/17 ``` I get a "/a val was omitted. set [0]" and it dumps with offset 0 maybe it doesn't parse values with - sign?
claunia added the bug label 2026-01-29 16:13:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#299