[Scummvm-tracker] [ScummVM :: Bugs] #15303: SCI: LSL5: Timed message skipped during LSL5 coffee scene (symptom of a bigger problem?)

ScummVM :: Bugs trac at scummvm.org
Sun Aug 18 16:43:22 UTC 2024


#15303: SCI: LSL5: Timed message skipped during LSL5 coffee scene (symptom of a
bigger problem?)
-------------------------+-----------------------------------
Reporter:  eriktorbjorn  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  normal        |   Component:  Engine: SCI
 Version:                |  Resolution:
Keywords:                |        Game:  Leisure Suit Larry 5
-------------------------+-----------------------------------
Comment (by m-kiewitz):

 It fully depends on how Sierra implemented it. It's just a global
 variable. They can do whatever they want with it.

 Oh wait, I see what it's doing.
 lsg 58h -> loads global 58h onto stack
 pToa ticks -> puts ticks (parameter) into acc
 sub -> subtracts acc from value on stack ( global 58h minus parameter )
 push -> pushes acc onto stack again
 ldi 00 -> set acc to 0
 gt? -> stack is greater than acc? (bigger than 0)
 bnt -> if not true, then jump

 I think it should be possible to optimize that comparison and use way less
 bytes.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/15303#comment:38>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list