[C#/asm] Trying to Translate an Algorithm

Posted by urmuther112@reddit | learnprogramming | View on Reddit | 5 comments

I am trying to translate this binary insertion sort written with C# to assembly (MASM if that matters). Here is what I have so far. To be quite honest this spaghetti'd together using my basic knowledge and all the hard to read solutions I could find on Google. My issue lies in not knowing how to print the sorted array to the console. When I went to search up how others have done it, the solutions would be very different from each other making it hard to implement in my own code. I then tried going to GPT with this issue but it kept telling to use syscalls and VGA memory that I know nothing about. Is there not just a way to convert the array into ASCII and push/pop them to the console? I just wanna see if the sort actually works.