diff --git a/Example Programs/C# Interop/Clock.asm b/Example Programs/C# Interop/Clock.asm index 38007f9..2b2d9d0 100644 --- a/Example Programs/C# Interop/Clock.asm +++ b/Example Programs/C# Interop/Clock.asm @@ -14,7 +14,7 @@ ASMX_LDA :ASSEMBLY_NAME :CLOCK_LOOP CallExternalFunction(:CLOCK_METHOD_NAME, :&DATETIME_FORMAT) -CallExternalFunction(:SLEEP_METHOD_NAME, 500) ; 500ms/0.5s +EXTD_SLP 500 ; 500ms/0.5s WCC '\r' ; Return to start of line @@ -26,9 +26,6 @@ JMP :CLOCK_LOOP :CLOCK_METHOD_NAME %DAT "PrintFormattedDateTime\0" -:SLEEP_METHOD_NAME -%DAT "Sleep\0" - :DATETIME_FORMAT %DAT "yyyy-MM-dd HH:mm:ss\0" diff --git a/Example Programs/C# Interop/Clock.cs b/Example Programs/C# Interop/Clock.cs index 26c5872..3439a97 100644 --- a/Example Programs/C# Interop/Clock.cs +++ b/Example Programs/C# Interop/Clock.cs @@ -22,13 +22,4 @@ public static void PrintFormattedDateTime(byte[] memory, ulong[] registers, ulon string format = GetStringFromMemory(memory, passedValue.Value); Console.Write(DateTime.Now.ToString(format, System.Globalization.CultureInfo.InvariantCulture)); } - - public static void Sleep(byte[] memory, ulong[] registers, ulong? passedValue) - { - if (passedValue is null) - { - throw new ArgumentException("This method requires a number of milliseconds to sleep"); - } - System.Threading.Thread.Sleep((int)passedValue); - } }