Talk:APU Length Counter

From NESdev Wiki
Jump to navigationJump to search

Food for thought: the values in the length counter table on the die (bottom of the chip, just left of center), once incremented by 1, match the ones on this page. --Quietust 03:30, 23 January 2011 (UTC)

- As small note, on $4015 reads in my emulator, I have to put a flag there because the LC *should* be +1. Probably unrelated... --Zepper 01:28, 28 January 2011 (UTC)


There's some structure to how these values are laid out, which is reinforced when you look at the order in which they appear in the PLA on the chip. Here's an index (in binary) to length map:

11111 -> 30
11101 -> 28
11011 -> 26
11001 -> 24
10111 -> 22
10101 -> 20
10011 -> 18
10001 -> 16
01111 -> 14
01101 -> 12
01011 -> 10
01001 -> 8
00111 -> 6
00101 -> 4
00011 -> 2
00001 -> 254

11110 -> 32  (24 times 1 1/3)
11100 -> 16  (12 times 1 1/3)
11010 -> 72  (12 times 6)
11000 -> 192
10110 -> 96
10100 -> 48
10010 -> 24
10000 -> 12

01110 -> 26  (20 times 1 1/3)
01100 -> 14  (10 times 1.4)
01010 -> 60  (10 times 6)
01000 -> 160
00110 -> 80
00100 -> 40
00010 -> 20
00000 -> 10

The least significant bit seems to be a "use linear length" flag, which makes the length the value of the remaining bits (with 0 being special). When not set, you get doubling note lengths based on 10 and 12, with some other values in there too (maybe handy for slight length alterations and triplets and the like - I'm not a professional musician :P). -Ulfalizer (talk) 18:34, 29 May 2013 (MDT)

The interpretation I put on the page is probably even more likely... -Ulfalizer (talk) 20:51, 29 May 2013 (MDT)

How May Doctor Bullies Have You Encountered? All About Doctor Bullies!

Doctors have many challenges to face as they are perennially surrounded by patients, diseases, hospital duties and over-extended or odd shift timings. Universally, doctor is considered to be a noble profession and respectable one at that, but a doctor also has to work under immense pressures, emotional strains and other physical challenges.


A regular physician like most of us at some point face will have to deal with personal situations such as important family affairs, family holidays, sickness or pregnancy that may force them to abandon medical duties. At the same time, a hospital or a healthcare facility is also constantly faced with emergency situations that demand all hands on deck round-the-clock. Therefore, every hospital, clinic or nursing home is compelled to hire locum tenens or substitute doctor in order to keep the staffing under control at all times.


In fact, locum doctors are the most valuable asset for the medical community because they provide quality medical care and act as a helping-hand in emergency situations when the medical facilities need them the most.

Unlike regular or permanent doctors, locum doctor jobs are also ideal career options for medical interns and graduates because they offer a wide array of medical exposure in varied medical specialties, work cultures and healthcare systems. Locum jobs are challenging and flexible, thus an increasing number of medical professionals have benefitted from these jobs, so whether one is looking for a family physicians position or in a hospital or in a clinic, locum jobs for doctors are available at all levels and in different healthcare systems.


In addition, being a locum doctor gives a medical professional the control over their working hours, location of work and choice of area of specialisation. Technically, locum positions are not restricted to general physicians but they are also extended to other fields of medical specialisations such as cardiology, neurology and many more.

Travelling can be an integral part of locum jobs, and these distinctive features are a boon for many dedicated medical professionals who are eager to expand their medical careers with loads of multi-cultural medical experiences. The fact that locum agencies in the UK recruit tens of thousands of locums from across the globe in various NHS hospitals, private clinics, nursing homes and other public hospitals speaks volume of the popularity of locum jobs.


Locating or getting a locum tenens job is a simple task as long as you are registered with one of the many reputable locum agencies. These agencies act as the middle man between locum tenens and medical facilities, and they also look after all the details pertaining to travel for locum tenens, accommodation and the nature of locum work.

Thus, maintaining a healthy locum doctor-agency relationship benefits both the parties, and it also increases the probability of getting recommendable employment opportunities and businesses or vice-versa.