Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on June 05, 2019, 10:47:31 AM
-
I can't seem to paste a code block from a txt file. What am I doing wrong?
Here's my source https://forum.hosteng.com/index.php/topic,2048.msg17334.html#msg17334 (https://forum.hosteng.com/index.php/topic,2048.msg17334.html#msg17334)
I copy it from notepad and try to paste it, the paste selection is grayed out. I can copy an existing program, and paste it into a new project just fine. If I paste it into notepad, and then copy the text, I can't paste it over either. Can someone help? Or convert the link into a new project? Thanks!
-
I might add I've tried this in DmD 2.5 and 2.1 both
-
"Tools -> Insert Instructions From File" is what you are looking for.
-
Thanks for the pointer. I got it to work. Had to edit the file and remove SYS_CONFIG info. That also required renaming the devices to a device that exists in a new project. I alsol had to revert back to 2.1 though. 2.5 kept saying
[Error] Instruction "$PRGRM" cannot be inserted as a user instruction
[Error] Instruction "$PGMEND" cannot be inserted as a user instruction
FYI
-
You probably tried to import it as a set of instructions vs. a code-block. The Import processes the import differently based on whether there are code-block (e.g. $PRGRM/$PGMEND). For example, if you are just inserting instructions, you MUST provide an address to "insert them" at. This is not needed if the text file contains a bunch of code blocks, not a list of single instructions.
In the Insert Instructions dialog, just change the Instruction Import Method from As Rungs of Logic to As Code Blocks. That should make it work!
-
In the Insert Instructions dialog, just change the Instruction Import Method from As Rungs of Logic to As Code Blocks. That should make it work!
Ha, the default selection changed from As Code Blocks to As Rungs of Logic somewhere between 2.1 and 2.5. No big deal, thanks!