StanWarford / pep9suite

Pep9Suite is a suite of software for the Pep/9 virtual machine described in the text Computer Systems, J. Stanley Warford, fifth edition.
http://computersystemsbook.com
Other
16 stars 7 forks source link

multi-line .ASCII string literals? #119

Open fstonedahl opened 2 years ago

fstonedahl commented 2 years ago

How hard would it be to add support for multi-line .ASCII string literals?

I was trying to write a quine in Pep/9 assembly since I thought it would be an interesting/clever assignment to give students to make them think about instructions vs data. However, being forced to use "\n" within the string literals makes it MUCH harder to write such a program. On the other hand, I believe there would be a nice short/clean quine if I could write:

s:  .ASCII "INSTR
INSTR
INSTR
..."

(Or perhaps using triple quotes like Python?)