From the course: Advanced C Programming: Integrating C and Assembly Language

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Challenge: Constructing a dialog

Challenge: Constructing a dialog

- [Instructor] Your challenge is to mix C and Assembly code to output a dialogue. Here's how it goes. Back and forth, Assembly is saying its thing, C saying its thing. Each line is generated by its own code; Assembly for Assembly, and C for C. So you'll be writing two modules. In C, put the C dialogue which I'll show again in a moment. And in Assembly, put the Assembly output functions that generate its dialogue. The C module will be the main module. And here's the dialogue again. Remember, the C source code generates the C output, Assembly generates the other lines. Link the modules to build the final program. This challenge should take you about 40 minutes to complete if everything goes as planned. Let's hope it does.

Contents