+ 3
SoloLearn Hardware Configuration
I want to write some Assembly codes within C program. Assembly Language and System Programming requires complete knowledge of Hardware Configuration especially CPU internals, Memory Organization and Operating System. Is there a way to achieve some information about SoloLearn Computer that host and executes our code?
4 Respostas
+ 5
More directly, noting that protected mode and virtualization / hypervisors may be in play:
The compiler in use (c++ test, may be MinGW):
https://code.sololearn.com/cu8tmoP4h80H/?ref=app
Determines the inline assembly type:
https://gcc.gnu.org/onlinedocs/gcc/Using-Assembly-Language-with-C.html
Some platform info from Python (AMD64 mode on Intel...32bit, hints at registers to expect):
https://code.sololearn.com/cyiK9SCytu46/?ref=app
For historical assembly, emulated real mode:
DOSBox is stable...
or as a curiosity the Virtualx86 emulator (javascript): https://copy.sh/v86/
(DEBUG (DOS 6.22) works, Windows 9x has a GUI, COM ports + external disk image mounting)
+ 3
Really, was this question so hard or very irrelevant!!!? It makes sense to no one! Is there anyone here that worked with Assembly Language!?
+ 3
For it taking >1hr for anyone to answer...
Most people are focusing on the advertised lessons here (inline assembly is a facet of C), and then: many people come online later in the day.
Where I've seen the relatively fewer people experimenting with assembly -- and not all of them on Intel -- sometimes they publish their experiments in CodePlayground and Q&A.