Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EBCDIC hex code to ASCII using a look-up table

26 views
Skip to first unread message

Sofa_snake

unread,
Apr 18, 2007, 2:48:44 PM4/18/07
to
Hello
I am brand new to 68000 programming, after studying PICs, I have leapt
onto 68k. I am finding it very difficult!
I have been set, whats supposed to be a simple task! to use a
lookup table to convert EBCDIC hex codes into ASCII character codes
using a lookup table. I then have to display these characters onto
the screen. I am using EASY68k which has a nice help file but no
mention of Lookup tables, What are they and what coding lines would
you use?
Any help would be appreciated!
Thank you

What I am to do

81 = EBCDIC hex for 'a'
This must then be converted to ASCII hex equivalent = 61
This ASCII character must then be printed onto terminal screen as
ASCII characters.

Ive got to do it for all displayable keyboard characters! so Im gonna
be busy inputting them all. I just need the first couple of lines to
get me under way!

Jeff Jonas

unread,
Apr 18, 2007, 6:45:52 PM4/18/07
to
In article <1176922123.6...@b75g2000hsg.googlegroups.com>,

Sofa_snake <rappi...@hotmail.co.uk> wrote:
>Hello
>I am brand new to 68000 programming, after studying PICs, I have leapt
>onto 68k. I am finding it very difficult!

I was forced to learn 68k for a computer lab course
but the PIC-16 was used in later semesters.
It's unusual to go in the reverse direction!

> I have been set, whats supposed to be a simple task!

This is homework for what course?

> to use a lookup table to convert EBCDIC hex codes into ASCII

Here's the table
http://www.natural-innovations.com/computing/asciiebcdic.html

>I am using EASY68k

Ah, that's
http://www.monroeccc.edu/ckelly/EASy68K.htm

>What are they and what coding lines would you use?

I'd do my homework and learn
- how the 68k has separate address and data registers
- how that relates to the commands for indexing

Now THAT is a good question for this group:
other than reading the Motorola datasheet for the 68k
or the textbook for the lad's lab course,
is there are preferred "learn the 68k" web site or book?

>This ASCII character must then be printed onto terminal screen as
>ASCII characters.

Your lab proctor should have given your more material that that,
perhaps a monitor program with library calls or supervisor calls
to perform tasks such as I/O?
--

-- mejeep deMeep ferret!

Bill Janssen

unread,
Apr 18, 2007, 7:13:11 PM4/18/07
to
Set an array with the address converted from the EBCDIC and the data in
ASCII.
Did that with a MC6800 way back.

Bill K7NOM

Sofa_snake

unread,
Apr 19, 2007, 5:52:33 AM4/19/07
to
On 18 Apr, 23:45, j...@panix.com (Jeff Jonas) wrote:
> In article <1176922123.606039.307...@b75g2000hsg.googlegroups.com>,

>
> Sofa_snake <rappingl...@hotmail.co.uk> wrote:
> >Hello
> >I am brand new to 68000 programming, after studying PICs, I have leapt
> >onto 68k. I am finding it very difficult!
>
> I was forced to learn 68k for a computer lab course
> but the PIC-16 was used in later semesters.
> It's unusual to go in the reverse direction!
>
> > I have been set, whats supposed to be a simple task!
>
> This is homework for what course?
>
> > to use a lookup table to convert EBCDIC hex codes into ASCII
>
> Here's the table
> http://www.natural-innovations.com/computing/asciiebcdic.html
>
> >I am using EASY68k
>
> Ah, that's
>
>
> >What are they and what coding lines would you use?
>
> I'd do my homework and learn
> - how the 68k has separate address and data registers
> - how that relates to the commands for indexing
>
> Now THAT is a good question for this group:
> other than reading the Motorola datasheet for the 68k
> or the textbook for the lad's lab course,
> is there are preferred "learn the 68k" web site or book?
>
> >This ASCII character must then be printed onto terminal screen as
> >ASCII characters.
>
> Your lab proctor should have given your more material that that,
> perhaps a monitor program with library calls or supervisor calls
> to perform tasks such as I/O?
> --
>
> -- mejeep deMeep ferret!

This is HNC and part time (one day a week) as I work, the other 4
days, all of us on the course are tearing our hair out over this
subjects assignments! Our lecturer went away for a 5 weeks to China
and wanders why we are all struggling! He is a sarcastic old
condescending badger, so u never get help from him!

Sofa_snake

unread,
Apr 19, 2007, 6:09:25 AM4/19/07
to
> condescending badger, so u never get help from him!- Hide quoted text -
>
> - Show quoted text -

Sorry that sent before Id finished the message! looks like I was
having a major rant!
I am a final year electronics apprentice I have done A-levels ONC NVQ2
and 3 and am now doing HNC, achieving high grades in all so far, The
programming is the stumbling block. I may do HND next year, if I can
stand the lazy attitude of the lecturers.

you say "textbook for the lad's lab course" is this a book, or what I
should be provided with? Weve never been provided with literature,
We've been told to FOFO (fuck off and find out)

You also say "lab proctor should have given your more material that
that,perhaps a monitor program with library calls or supervisor calls


to perform tasks such as I/O?"

He hasn't, but we are to use Flight 68k interface board but again its
FOFO. Not enough time in the day! AGHH!

I am aware of the different addressing modes and that it has separate
address and data registers as that was the first assignment. Alot of
time and research was involved with that one. This one seems like its
going to be a whole lot worse. We also have to do Top down
development, No bottom up allowed, Just dont have the confidence or
the knowledge to be able to do that! Sometimes I wish I was doing it
full time.

Cheers for your help so far All!

Dan

Jeff Jonas

unread,
Apr 19, 2007, 11:06:41 PM4/19/07
to
Dan:

>you say "textbook for the lad's lab course" is this a book, or what I
>should be provided with? Weve never been provided with literature,
>We've been told to FOFO (fuck off and find out)

Oy, I can now sympathise for I (USA/NJ graduate computer engineering major)
was similarly forced to buy an overpriced student-version
68008 development board with minimally documented ROM.
Since I did not know anyone who took the course before,
I found lab notes and some documentation on the web site
of the professors who had taught the lab course in previous years.

>You also say "lab proctor should have given your more material that
>that,perhaps a monitor program with library calls or supervisor calls
>to perform tasks such as I/O?"
>He hasn't, but we are to use Flight 68k interface board

You mean
http://www.vanguard-co.com.my/contents/product/educational/micro/68000.htm
Flight 68000 Training System
The Flight-68K System complete with a sturdy book style case,
serial and parallel I/O, full 68000 bus available,
comprehensive and enhanced firmware, no less than five manuals,
a power supply and cross assembler.

I did not find downloadable manuals,
but the mfgr ought to be sympathetic and make them available to you.

The first step is just to get a program running that displays "hello, world"
for that means
- making a system-call to the monitor for console output
(possibly initializing things first)
- using the assembler
- loading the binary output to the targer system
- running the binary on the "target system" (the raw hardware)

>I am aware of the different addressing modes and that it has separate
>address and data registers as that was the first assignment. Alot of
>time and research was involved with that one. This one seems like its
>going to be a whole lot worse.

I found that learning the development & execution/run-time environment
was the first major hurdle since each processor development system is unique.
But once that first "hello world" program is running,
the rest is mostly modifications of what you just got learned.

I am sorrowed that lazy lab assistants are not just a USA problem.

0 new messages