Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:14:33+00:00 2026-06-09T16:14:33+00:00

My Question Building the code below i get: 319920C30020C30A20FBED563E00C600CA0520F33E55D3073E00FBC9 My Problem is I assumed

  • 0

My Question

Building the code below i get:
“319920C30020C30A20FBED563E00C600CA0520F33E55D3073E00FBC9”

My Problem is I assumed that this would be padded with zeros such that each block of code is at the requested addresses 0000H, 0038H, and 2000H in program memory.

Immediately I can see a work around of manually doing the padding, but how are Z80 processors loaded with the above program, to be at the correct addresses?

Code

STACK .EQU 2099H
.ORG 0000H
    ld  SP, STACK
    jp 2000H

.ORG 0038H
    jp  service_routine

.ORG 2000H
    EI
    IM 1 
    LD  A, 00H

LOOP:
    ADD A, 00H
    jp  z, LOOP

service_routine:
    DI
    ld  A, 55H
    out (07H),A
    ld  A, 00H
    EI
    ret
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:14:35+00:00Added an answer on June 9, 2026 at 4:14 pm

    The ORG directive merely tells the assembler what you think the PC is at that point in the code. The assembler can then use this to compute the correct code for a relative jump. It does not direct the assembler or the loader to actually load the code at that address.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
I'm building a hub which should send message to specific user and this Question
I am building a web application (in Django, though this isn't a Django-specific question).
Answer Summary: Solved this problem using Jon Skeet's answer below. Here is the finished
building upon the $.fn.serializeObject() function from this question , i'd like to be able
This might not appear like a programming question, but inherently deals with code. I
This is sort of a two part question. I'm building a flash image viewer
Kindly have a look at below code i am using this to generate a
I asked a question about building custom Thread Safe Generic List now I am
I have a question regarding building GUI applications. I feel like the title of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.