Programming Studio #6ECE 190Programming Studio #6• Concepts this week:– MP2 Testing Strategies– LC-3 Programming!Announcements• HW2 regrade requests• Due Friday 3/4, 5PM• Place in ECE 190 dropbox• MP2 is out• Due Wednesday 3/2, 5PMMP2 Testing Strategies• Test corner cases and edge cases to expose bugs in program.• Use test cases to narrow down issues as well (this works, but that doesn’t yet).• What test cases might you use for MP2?MP2 Testing Strategies• Thread on web board for students to share test cases.• Post on thread your test case, and why you think it is a good idea to test.• Do NOT post code!MP2 Testing• When testing MP2, you only need to call `make test`.• Make program will see that ‘make’ has not been done yet and will automatically ‘make’ before ‘make test’.LC-3 Practice Programming• `ece190`• Download ps06.zip from website.• Goal: Have LC-3 print out a 9x9 multi. table.• ps06.asm: Skeleton code, read comments!• ps06.c: C code that already works.• `make` and `make test`• Tip: Transform C’s for loop into LC-3 using systematic decomposition.LC-3 Programming Challenges• Write your own `PRINT_NUM` routine and modify code to call your routine rather than ours.• Write your own `MULT` routine.• Examine and test `MULT` routine presented last week and find/fix bugs. (The code we presented in previous studios actually has a subtle bug
View Full Document