|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
| Sponsored Links |
|
|
|
|||||
|
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 |
|
|||||
|
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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions I'm always up for a chat, so feel free to contact me... |
|
|||||
|
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 |
| Sponsored Links |
|
|
|
|||||
|
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)
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions I'm always up for a chat, so feel free to contact me... |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| 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 |
Goal: 100,000 Posts
Complete: 82%