@@ -17,14 +17,13 @@ public class RewrittenOverrides : CSharpOverrideHelper
1717 /// </summary>
1818 private const ushort EntrySegmentAddress = 0x1000 ;
1919
20- public RewrittenOverrides ( Dictionary < SegmentedAddress , FunctionInformation > functionInformations , Machine machine , ILoggerService loggerService , Configuration configuration , ushort entrySegment = 0x1000 ) : base ( functionInformations , machine , loggerService , configuration )
20+ public RewrittenOverrides ( Dictionary < SegmentedAddress , FunctionInformation > functionInformations , Machine machine , ILoggerService loggerService , Configuration configuration , ushort entrySegment = 0x1000 )
21+ : base ( functionInformations , machine , loggerService , configuration )
2122 {
2223 DefineGeneratedCodeOverrides ( ) ;
2324 SetProvidedInterruptHandlersAsOverridden ( ) ;
2425 }
2526
26- public Dictionary < SegmentedAddress , FunctionInformation > FunctionInformations => _functionInformations ;
27-
2827 public void DefineGeneratedCodeOverrides ( )
2928 {
3029 DefineFunction ( EntrySegmentAddress , 0x0 , EntryPoint_OpenLogoHnmFileAndRun_1000_0000_10000 , false ) ;
@@ -50,7 +49,7 @@ public virtual Action EntryPoint_OpenLogoHnmFileAndRun_1000_0000_10000(int offse
5049 Memory . SetZeroTerminatedString ( MemoryUtils . ToPhysicalAddress ( DS , DI ) , ".HNM" , 5 ) ;
5150 }
5251 // Open file handle (LOGO.HNM)
53- Machine . Dos . DosInt21Handler . OpenFile ( false ) ;
52+ Machine . Dos . DosInt21Handler . OpenFileorDevice ( false ) ;
5453 DX = 0x2E ;
5554 if ( ! CarryFlag )
5655 {
@@ -559,7 +558,7 @@ public void CommonUnknown_display_1000_0E59_10E59()
559558 public void UpdatePaletteDataAddress_1000_0E86_10E86 ( )
560559 {
561560 SegmentedAddress pointer = PaletteDataAddress ;
562- ushort newSegmentOffset = ( ushort ) ( UInt16 [ pointer . ToPhysical ( ) ] + pointer . Offset ) ;
561+ ushort newSegmentOffset = ( ushort ) ( UInt16 [ pointer . Linear ] + pointer . Offset ) ;
563562 ushort newSegment = ( ushort ) ( ( newSegmentOffset >> 4 ) + pointer . Segment ) ;
564563 ushort newOffset = ( ushort ) ( newSegmentOffset & 0xF ) ;
565564 WritePaletteDataAddress ( newSegment , newOffset ) ;
0 commit comments