Tutorial Moodle VPL Assembly Language with Output

From dftwiki3
Revision as of 07:25, 12 June 2014 by Thiebaut (talk | contribs) (vpl_evaluate.cases)
Jump to: navigation, search

--D. Thiebaut (talk) 08:25, 12 June 2014 (EDT)



MoodleVPLLogo.png


This tutorial presents a simple VPL activity to test an assembly language program that displays a fixed string of characters.


VPL Activity


Assembly Language: print stars
Due date: Monday, 20 June 2016, 8:00 PM
Requested files: hw2.asm (Download)
Type of work: Individual work
Grade settings: Maximum grade: 100
Run: No Evaluate: No
Assembly Language program that display stars

Execution files

vpl_run.sh


#! /bin/bash
 
cat > vpl_execution <<EOF
#! /bin/bash
nasm -f elf -F stabs hw2.asm
ld -melf_i386 -o hw2 hw2.o
./hw2
EOF

chmod +x vpl_execution


vpl_evaluate.cases


case = Test 1
output = "*********************
*********************
*********************
*********************
*********************
*********************
"


Testing