Загрузка...

NASM Assembly Reverse Array

I added code execution to the Coder's Sage platform, so of course one of the first languages to test is the assembly.
Judge0 platform(https://judge0.com/) offers code execution for NASM 64 bit so that's the one we aim for.

The way this works is, I want the assembly part to concentrate on pure logic and pure function, so no printing to console and stuff because that is difficult in assembly and is just a waste of time and resources.
Instead, assembly is generated lean and to get results I wrap it in C language(for input, output, printing and stuff) and execute in C language at Judge0.
This way assembly is tested for function(first execution as assembly) and secondly for correctness(second execution as a C wrapped assembly).

In theory it works, but as you can see I didn't get it quite right in C part, even though the assembly code had no issues. Hopefully I will get it to work, because getting tested, proven to work assembly with output seems great for learning!
By the way, I hope you liked my cloned voice, I recorded directly from test environment😁🫣 In production currently I use a more professional sounding voice, even though cloned voice seems more natural...

Unfortunately, I can't give you code along link because I haven't pushed NASM 64 and code execution to production yet, but check out other lessons:

https://thecoderssage.com/

Happy Coding!

Видео NASM Assembly Reverse Array канала ConstantDev
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять