Lost Password?

Go Back   CodeCall Programming Forum > Software Development > General Programming

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-2007, 05:19 AM
Gixxerman Gixxerman is offline
Newbie
 
Join Date: Oct 2007
Posts: 1
Credits: 0
Rep Power: 0
Gixxerman is on a distinguished road
Default Help! Identifying programming language

I have a problem. I need to modify some software that was wriiten by a guy who left and I have no way of contacting him. The problem is, I have no idea what language tha code is written in!

The compiler seems to be called "plus" and the source code modules have a .pls extension. Pointers seem to have a '.' prefix.

Any help would be greatfully appreciated!

Here is a example of the code:-
Code:
procedure erase_block(long .block_addr: byte usepolling): byte done, ch: long status;

   flash_program_register = 1; /* enable the FLASH writes */

   block_addr = $20202020;         /* request block erase     */
   block_addr = $d0d0d0d0;         /* confirm block erase     */
   done = switch;    /* waste time as the BZY line takes 90ns */

   if (usepolling)
   begin
      done = 0;
      repeat
         status = block_addr;
         if (status and $80808080) = $80808080 then done = 1;
         ch = getkey;
         if ch = sp then
         begin
            print_long(status); crlf;
         end;
         if ch = cr then
         begin
            print_long(status); crlf;
            block_addr = $FFFFFFFF;         /* tell the Chip all complete */
            block_addr = $50505050;         /* Must CLEAR the status Register */
            flash_program_register = 0;     /* disable the FLASH writes */
            return 3;
         end;
      until done <> 0;
   end;
   else
   begin
     repeat 
        ch = getkey;
        if ch = sp then
        begin
           status = block_addr;
           print_long(status);print "   ";
           print_byte(flash_program_register); crlf;
        end;
        if ch = cr then
        begin
           print_long(status); crlf;
           block_addr = $FFFFFFFF;         /* tell the Chip all complete */
           block_addr = $50505050;         /* Must CLEAR the status Register */
           flash_program_register = 0;     /* disable the FLASH writes */
           return 3;
        end;
     until(flash_program_register and $7f);
     done = 0;
     repeat
         status = block_addr;
         ch = getkey;
         if ch = sp then
         begin
            print_long(status); crlf;
         end;
         if ch = cr then done = 1;
         if (status and $80808080) = $80808080 then done = 1;
      until done <> 0;
   end;

   status = block_addr;
   block_addr = $FFFFFFFF;         /* tell the Chip all complete */
   block_addr = $50505050;         /* Must CLEAR the status Register */
   flash_program_register = 0;     /* disable the FLASH writes */

Last edited by v0id; 10-23-2007 at 11:42 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-23-2007, 10:36 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,485
Last Blog:
wxWidgets is NOT code ...
Credits: 830
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

It is not a C or Pascal descendant. It may be a basic descendant. Not sure if that helps any.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-23-2007, 11:48 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,578
Last Blog:
CherryPy(thon)
Credits: 55
Rep Power: 28
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

I just edited the post, and added code-tags. Now it's possible to see indentation.

I don't recognize the language neither, but my best guess would be a BASIC-descendant, like WingedPanther already pointed out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-31-2007, 03:34 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,317
Credits: 0
Rep Power: 74
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default

There are many programming languages that use the PSL extesion. Is it a browser based thing? or hardware related?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-01-2007, 10:53 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Credits: 0
Rep Power: 14
Kaabi is on a distinguished road
Default

From the very little that I know of C and C++, that looks more like C, but if WingedPanther didn't know, then I sure as heck don't either.
__________________
Cheap Airsoft Guns

If you are looking for high-quality, yet cheap, airsoft guns, then check out MrAirsoft.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-02-2007, 12:34 PM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,578
Last Blog:
CherryPy(thon)
Credits: 55
Rep Power: 28
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

IMO, it don't look like C/C++ at all. My best shot will still be some BASIC-dialect, or maybe some high-level ***embly (HLA)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
new C-like programming language kenna Software Development Tools 14 09-03-2008 02:34 PM
Develop a new programming language cygnusX General Programming 8 11-12-2007 04:44 PM
best programming language Svraddict General Programming 8 09-29-2007 11:38 AM
D Programming Language. R-G General Programming 2 04-12-2007 11:22 AM
How do you learn a programming language? Dan Software Development Tools 14 08-09-2006 07:12 PM


All times are GMT -5. The time now is 08:12 PM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 735.07
chili5 ........ 309.39
Steve.L ........ 236.23
dcs ........ 216.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads