{"id":407,"date":"2016-09-01T14:23:02","date_gmt":"2016-09-01T12:23:02","guid":{"rendered":"http:\/\/www.hunggartorino.it\/ql\/?p=407"},"modified":"2016-08-05T21:33:27","modified_gmt":"2016-08-05T19:33:27","slug":"be-careful-exchanging-files-between-pc-and-emulator","status":"publish","type":"post","link":"https:\/\/www.hunggartorino.it\/ql\/be-careful-exchanging-files-between-pc-and-emulator\/","title":{"rendered":"Be careful exchanging files between PC and emulator!"},"content":{"rendered":"<p id=\"tw-target-text\" class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">One of the first problems I encountered in writing programs is just about the encoding and formatting of text that occurs between the PC and emulator. The SSB compiler, as well as the\u00a0 SuperBasic itself, &#8220;digest&#8221; with difficulty the texts produced with PCs. It happens that the line terminators are misinterpreted, creating the usual MISTAKEs in compiling. Opening the texts with Emacs and save them is not enough. We must first create a file with Emacs, and then open them outside the emulator (in Windows) avoiding the use of tabulation and ending the file with a classic CR (carriage return or &#8220;new line&#8221;), otherwise we&#8217;ll run into unclear errors if you are using the SSB compiling. So if you really do not want to use Emacs for programming, the necessary steps are: <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">1- Launch Emacs &#8211; File &#8211; rename current file <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">2- Assign a file in this format: DOS1_folder_filename_extension (eg: DOS1_QL_TEST_bas) <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">3- File &#8211; save current file <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">4- Open in Windows the file with Notepad ++, or at least your favorite text editor being very careful to avoid the use of tabulation <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">5- go newline at the end of file <\/span><\/p>\n<p class=\"tw-data-text vk_txt tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">At this point you can proceed as usual!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"One of the first problems I encountered in writing programs is just about the encoding and formatting of text that occurs between the \n<a class=\"moretag\" href=\"https:\/\/www.hunggartorino.it\/ql\/be-careful-exchanging-files-between-pc-and-emulator\/\"> [..more...]<\/a>","protected":false},"author":3,"featured_media":31,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":1,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/407\/revisions\/409"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/media\/31"}],"wp:attachment":[{"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}